摘要:
#include #include #include #include #include using namespace std; const int N=1010; int n,m,link[N],e; bool vis[N]; vector G[N]; bool can(int u){ for(int i=0;i<G[u].size();i++){ int v=G[u][i... 阅读全文
摘要:
#include using namespace std; const int N=100010; int n,m,sum,dfs_clock; vector G[N]; int pre[N],low[N],iscut[N]; int dfs(int u,int fa){ int lowu=pre[u]=++dfs_clock; int child=0; for(int i=0;i=p... 阅读全文