We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7476c8c commit dc71748Copy full SHA for dc71748
code/math/CRT.cpp
@@ -7,7 +7,7 @@ pll extendedEuclid(ll a, ll b){ // a * x + b * y = __gcd(a,b)
7
if(a*x+b*y==-__gcd(a,b)) x=-x, y=-y;
8
return {x,y};
9
}
10
-pair<pll,pll> diophantine(ll a,ll b, ll r) {
+pair<pll,pll> diophantine(ll a, ll b, ll r) {
11
//a*x+b*y=r where r is multiple of __gcd(a,b);
12
ll d=__gcd(a,b);
13
a/=d; b/=d; r/=d;
0 commit comments