Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
using namespace std;
6
7
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
8
9
int powmod(int a, int b, int m) {
10
int res = 1;
Callers
2
generate_small_cases
Function · 0.70
test_data_ok
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected