MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / gcd

Function gcd

test/test_discrete_log.cpp:7–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace std;
6
7int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
8
9int powmod(int a, int b, int m) {
10 int res = 1;

Callers 2

generate_small_casesFunction · 0.70
test_data_okFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected