poj1061 模线性方程

模板题ios 首先  x + k*m ≡ y + k* n (mod L) 转化成 k(m - n) ≡ y - x(mod L)spa 套模板获得最小的解,可是要求是正的最小解,进行取模Lcode #include<iostream> #include<cstdio> using namespace std; #define LL long long inline LL exgcd(LL a,
相关文章
相关标签/搜索