Skip to content

Commit f58005f

Browse files
committed
fix comb
1 parent 7292cf2 commit f58005f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct modinv {
55
int n; vector<mint> d;
66
modinv(): n(2), d({0,1}) {}
77
mint operator()(int i) {
8-
while (n <= i) d.push_back(-d[mint::mod%n]*(mint::mod/n)), ++n;
8+
while (n <= i) d.push_back(-d[mint::mod()%n]*(mint::mod()/n)), ++n;
99
return d[i];
1010
}
1111
mint operator[](int i) const { return d[i];}

0 commit comments

Comments
 (0)