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

Function Division

codes/cpp/Code_4_06_5.cpp:18–20  ·  view source on GitHub ↗

Division(a, b, m) �� a��b mod m ��Ԃ��֐�

Source from the content-addressed store, hash-verified

16
17// Division(a, b, m) �� a��b mod m ��Ԃ��֐�
18long long Division(long long a, long long b, long long m) {
19 return (a * modpow(b, m - 2, m)) % m;
20}
21
22int main() {
23 // ����

Callers 1

mainFunction · 0.70

Calls 1

modpowFunction · 0.70

Tested by

no test coverage detected