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 b60ed56 commit 6081f85Copy full SHA for 6081f85
math/ncr_modulo_p.cpp
@@ -42,7 +42,7 @@ class NCRModuloP {
42
p = mod;
43
fac = std::vector<uint64_t>(size + 1);
44
fac[0] = 1;
45
- for (std::size_t i = 1; i <= size; i++) {
+ for (uint64_t i = 1; i <= size; i++) {
46
fac[i] = (fac[i - 1] * i) % p;
47
}
48
0 commit comments