Update math/ncr_modulo_p.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Kaustubh Damania
2020-10-19 11:19:28 +05:30
committed by GitHub
parent bd98630498
commit e44b7305ce

View File

@@ -75,6 +75,10 @@ int64_t ncr(int64_t n, int64_t r, int64_t p) {
return (fac[n] * denominator) % p;
}
/**
* @brief Main function
* @returns 0 on exit
*/
int main() {
// populate the fac array
const int64_t size = 1e6 + 1;