mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-10 08:03:30 +08:00
Update math/ncr_modulo_p.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user