summaryrefslogtreecommitdiff
path: root/math/extendedEuclid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/extendedEuclid.cpp')
-rw-r--r--math/extendedEuclid.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/math/extendedEuclid.cpp b/math/extendedEuclid.cpp
deleted file mode 100644
index ecf4a16..0000000
--- a/math/extendedEuclid.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-// a*x + b*y = ggt(a, b)
-array<ll, 3> extendedEuclid(ll a, ll b) {
- if (a == 0) return {b, 0, 1};
- auto [d, x, y] = extendedEuclid(b % a, a);
- return {d, y - (b / a) * x, x};
-}