MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / ncr

Function ncr

codes/cpp/Code_4_06_6.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22long long ncr(int n, int r) {
23 // ncr �� n! �� r! �~ (n-r)! �Ŋ������l
24 return Division(fact[n], fact[r] * fact[n - r] % mod, mod);
25}
26
27int main() {
28 // �z��̏������ifact[i] �� i �̊K��� 1000000007 �Ŋ������]��j

Callers 1

mainFunction · 0.70

Calls 1

DivisionFunction · 0.70

Tested by

no test coverage detected