本文共 223 字,大约阅读时间需要 1 分钟。
#includeusing namespace std;const int N=10005,M=50005;vector son[N];int dfn[N],low[N],num,s[N],out[N],top,cnt;int scc[N];int sz[N],n,m; void tarjan(int u) { low[u]=dfn[u]=++num,s[++top]=u; for(int i=0;i
转载地址:http://iawn.baihongyu.com/