We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ecd764 commit 3fb447eCopy full SHA for 3fb447e
tests/library_checker_aizu_tests/graphs/offline_incremental_scc.test.cpp
@@ -27,7 +27,7 @@ int main() {
27
auto [u, v] = eds[order[it]];
28
u = dsu.go(u);
29
v = dsu.go(v);
30
- if (dsu.e[u] > dsu.e[v]) swap(u, v);
+ if (dsu.p[u] > dsu.p[v]) swap(u, v);
31
if (u != v) {
32
sum = (sum + 1LL * xs[u] * xs[v]) % mod;
33
xs[u] = (xs[u] + xs[v]) % mod;
0 commit comments