Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
long 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
27
int main() {
28
// �z��̏������ifact[i] �� i �̊K��� 1000000007 �Ŋ������]��j
Callers
1
main
Function · 0.70
Calls
1
Division
Function · 0.70
Tested by
no test coverage detected