summaryrefslogtreecommitdiff
path: root/math/chineseRemainder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/chineseRemainder.cpp')
-rw-r--r--math/chineseRemainder.cpp3
1 files changed, 1 insertions, 2 deletions
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<lll>());
+ M = accumulate(all(mods), lll(1), multiplies<lll>());
inv.resize(sz(lhs));
for (int i = 0; i < sz(lhs); i++) {
lll x = (M / mods[i]) % mods[i];