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

Method pow

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

Source from the content-addressed store, hash-verified

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];
17void ntt(Num x[], int n, bool inv = false) {
18 Num z = inv ? ginv : g;

Callers 1

nttFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected