aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2020/US Open/Gold/fcolor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/2020/US Open/Gold/fcolor.cpp b/2020/US Open/Gold/fcolor.cpp
index 4bf342a..5a3879d 100644
--- a/2020/US Open/Gold/fcolor.cpp
+++ b/2020/US Open/Gold/fcolor.cpp
@@ -30,7 +30,7 @@ int main() {
G[b].push_back(a), H[a].push_back(b);
}
for (int u = 1; u <= N; ++u) dfs(u);
- for (int u = 1; u <= N; ++u) dfs(u);
+ vis.reset();
for (int u = 1; u <= N; ++u) dfs(u);
cnt = 0;
for (int u = 1; u <= N; ++u) if (!ans[c[u]]) ans[c[u]] = ++cnt;