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 334d91e commit 478edd5Copy full SHA for 478edd5
math/ncr_modulo_p.cpp
@@ -169,8 +169,7 @@ int main() {
169
// populate the fac array
170
const uint64_t size = 1e6 + 1;
171
const uint64_t p = 1e9 + 7;
172
- const math::ncr_modulo_p::NCRModuloP ncrObj =
173
- math::ncr_modulo_p::NCRModuloP(size, p);
+ const auto ncrObj = math::ncr_modulo_p::NCRModuloP(size, p);
174
// test 6Ci for i=0 to 7
175
for (int i = 0; i <= 7; i++) {
176
std::cout << 6 << "C" << i << " = " << ncrObj.ncr(6, i) << "\n";
0 commit comments