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.
2 parents 090b6f4 + 639b71d commit 7019befCopy full SHA for 7019bef
number/acl_modint.hpp
@@ -28,5 +28,6 @@ template <typename modint> struct acl_fac {
28
}
29
modint operator[](int i) const { return facs[i]; }
30
modint finv(int i) const { return facinvs[i]; }
31
+ modint inv(int i) const { return i > 0 ? facinvs[i] * facs[i - 1] : 1; }
32
};
33
// acl_fac<mint> fac(1000000);
0 commit comments