Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/E869120/math-algorithm-book
/ Division
Function
Division
codes/cpp/Code_4_06_6.cpp:18–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
}
17
18
long long Division(long long a, long long b, long long m) {
19
return (a * modpow(b, m - 2, m)) % m;
20
}
21
22
long long ncr(int n, int r) {
23
// ncr �� n! �� r! �~ (n-r)! �Ŋ������l
Callers
1
ncr
Function · 0.70
Calls
1
modpow
Function · 0.70
Tested by
no test coverage detected