summaryrefslogtreecommitdiff
path: root/math/linearCongruence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/linearCongruence.cpp')
-rw-r--r--math/linearCongruence.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/math/linearCongruence.cpp b/math/linearCongruence.cpp
deleted file mode 100644
index cdb5a37..0000000
--- a/math/linearCongruence.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-ll solveLinearCongruence(ll a, ll b, ll m) {
- ll g = gcd(a, m);
- if (b % g != 0) return -1;
- return ((b / g) * multInv(a / g, m / g)) % (m / g);
-}