8000
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 7292cf2 commit f58005fCopy full SHA for f58005f
comb.cpp
@@ -5,7 +5,7 @@ struct modinv {
5
int n; vector<mint> d;
6
modinv(): n(2), d({0,1}) {}
7
mint operator()(int i) {
8
- while (n <= i) d.push_back(-d[mint::mod%n]*(mint::mod/n)), ++n;
+ while (n <= i) d.push_back(-d[mint::mod()%n]*(mint::mod()/n)), ++n;
9
return d[i];
10
}
11
mint operator[](int i) const { return d[i];}
0 commit comments