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 b6d44d9 commit 639b71dCopy full SHA for 639b71d
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