From 5ab8a5088b729a9953b8dff1b2a985dc8fb2098b Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 27 Jun 2022 17:19:28 +0200 Subject: updated tcr --- math/multInv.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'math/multInv.cpp') diff --git a/math/multInv.cpp b/math/multInv.cpp index 4e388b8..87603f3 100644 --- a/math/multInv.cpp +++ b/math/multInv.cpp @@ -1,7 +1,5 @@ -// Laufzeit: O(log (n) + log(p)) ll multInv(ll n, ll p) { ll x, y; extendedEuclid(n, p, x, y); // Implementierung von oben. - x = ((x % p) + p) % p; - return x % p; + return ((x % p) + p) % p; } -- cgit v1.2.3