Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
typedef vector<vi> vvi;
16
typedef vector<vii> vvii;
17
template <class T> T smod(T a, T b) {
18
return (a % b + b) % b; }
19
20
default_random_engine rng(
21
chrono::system_clock::now().time_since_epoch().count());
Callers
7
mod_pow
Function · 0.85
linear_congruence
Function · 0.85
mod_inv
Function · 0.85
crt
Function · 0.85
gcrt
Function · 0.85
test
Function · 0.85
check
Function · 0.85
Calls
no outgoing calls
Tested by
2
test
Function · 0.68
check
Function · 0.68