summaryrefslogtreecommitdiff
path: root/math/modPowIterativ.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/modPowIterativ.cpp')
-rw-r--r--math/modPowIterativ.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/math/modPowIterativ.cpp b/math/modPowIterativ.cpp
deleted file mode 100644
index 0dc3fb1..0000000
--- a/math/modPowIterativ.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-ll powMod(ll a, ll b, ll n) {
- ll res = 1;
- while (b > 0) {
- if (b & 1) res = (a * res) % n;
- a = (a * a) % n;
- b /= 2;
- }
- return res;
-}