MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / smod

Function smod

code/header.cpp:17–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15typedef vector<vi> vvi;
16typedef vector<vii> vvii;
17template <class T> T smod(T a, T b) {
18 return (a % b + b) % b; }
19
20default_random_engine rng(
21 chrono::system_clock::now().time_since_epoch().count());

Callers 7

mod_powFunction · 0.85
linear_congruenceFunction · 0.85
mod_invFunction · 0.85
crtFunction · 0.85
gcrtFunction · 0.85
testFunction · 0.85
checkFunction · 0.85

Calls

no outgoing calls

Tested by 2

testFunction · 0.68
checkFunction · 0.68