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

Method Num

code/mathematics/ntt.cpp:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6struct Num {
7 int x;
8 Num(ll _x=0) { x = (_x%mod+mod)%mod; }
9 Num operator +(const Num &b) { return x + b.x; }
10 Num operator -(const Num &b) const { return x - b.x; }
11 Num operator *(const Num &b) const { return (ll)x * b.x; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected