diff options
author | Anthony Wang | 2020-08-21 10:47:01 -0500 |
---|---|---|
committer | Anthony Wang | 2020-08-21 10:47:01 -0500 |
commit | d69a1eed7e64acbf8aaf2551c2286e82c37b8543 (patch) | |
tree | 3599fbbf9f16a1a43e4bc44820af7f59c82aacd8 | |
parent | 92d2a02df3244903491a341b499c1c4441bafa35 (diff) |
Enforce consistent style
-rw-r--r-- | Graph/tarjan_scc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Graph/tarjan_scc.cpp b/Graph/tarjan_scc.cpp index 3da3b41..a812aba 100644 --- a/Graph/tarjan_scc.cpp +++ b/Graph/tarjan_scc.cpp @@ -1,6 +1,6 @@ -int cnt, scc_num, scc[MAXN], in[MAXN], low[MAXN]; +int cnt, scc_num, scc[MN], in[MN], low[MN]; stack<int> s; -bitset<MAXN> ins; +bitset<MN> ins; void tarjan(int u) { low[u] = in[u] = cnt++; @@ -22,4 +22,4 @@ void tarjan(int u) { memset(scc, -1, sizeof scc), memset(in, -1, sizeof in); -for (int u = 1; u <= N; ++u) if (scc[u] == -1) tarjan(u);
\ No newline at end of file +for (int u = 1; u <= N; ++u) if (scc[u] == -1) tarjan(u); |