缩点模板

题目:洛谷3389html 缩点本质上就是把一些能够相互到达(强连通份量)的点当作一个点,而后构建一个新图,方便计算。node #include<iostream> using namespace std; const int N=10005; const int M=100005; int n,m,head[N],dfn[N],low[N],vis[N],s[N],top,cnt,ans; in
相关文章
相关标签/搜索