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

Method operator /

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

Source from the content-addressed store, hash-verified

10 Num operator -(const Num &b) const { return x - b.x; }
11 Num operator *(const Num &b) const { return (ll)x * b.x; }
12 Num operator /(const Num &b) const {
13 return (ll)x * b.inv().x; }
14 Num inv() const { return mod_pow<ll>((ll)x, mod-2, mod); }
15 Num pow(int p) const { return mod_pow<ll>((ll)x, p, mod); }
16} T1[MAXN], T2[MAXN];

Callers

nothing calls this directly

Calls 1

invMethod · 0.80

Tested by

no test coverage detected