aboutsummaryrefslogtreecommitdiff
path: root/Math/numtheory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Math/numtheory.cpp')
-rw-r--r--Math/numtheory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Math/numtheory.cpp b/Math/numtheory.cpp
index a2be7db..d25a984 100644
--- a/Math/numtheory.cpp
+++ b/Math/numtheory.cpp
@@ -9,10 +9,9 @@ inline ll pw(ll base, ll exp) {
}
return res;
}
-
inline ll inv(ll x) { return pw(x, MOD-2); }
-ll fact[MN] = { 1 }, ifact[MN] = { 1 };
+ll fact[MX] = { 1 }, ifact[MX] = { 1 };
inline ll nCr(int n, int k) { return fact[n]*ifact[k]%MOD*ifact[n-k]%MOD; }