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,
相關文章
相關標籤/搜索