diff options
author | Ta180m | 2020-05-03 16:41:56 -0500 |
---|---|---|
committer | GitHub | 2020-05-03 16:41:56 -0500 |
commit | d9371e95e2e3c5513b24ed7fdc5066eb7a3d364e (patch) | |
tree | ec1285cf0b454db4fa6878288c23a696b7ae742d | |
parent | 51e730f351f28ef2e798c97dae20b11a8b71542d (diff) |
Update fcolor.cpp
-rw-r--r-- | 2020/US Open/Gold/fcolor.cpp | 2 |
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; |