From 03788f48be2634c36cd19ba25b0a851685b9c877 Mon Sep 17 00:00:00 2001 From: MZuenni Date: Wed, 30 Nov 2022 12:43:27 +0100 Subject: use all macro --- math/chineseRemainder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'math/chineseRemainder.cpp') diff --git a/math/chineseRemainder.cpp b/math/chineseRemainder.cpp index 2308836..86a10ae 100644 --- a/math/chineseRemainder.cpp +++ b/math/chineseRemainder.cpp @@ -26,8 +26,7 @@ struct ChineseRemainder { // Löst das System. ll solve() { - M = accumulate(mods.begin(), mods.end(), lll(1), - multiplies()); + M = accumulate(all(mods), lll(1), multiplies()); inv.resize(sz(lhs)); for (int i = 0; i < sz(lhs); i++) { lll x = (M / mods[i]) % mods[i]; -- cgit v1.2.3