版本比较
代码模板4
正文
增加 2 行删除 2 行
245 行未改动全部展开24624724824925025025125225325432 行未改动28728828929029129129229329429531 行未改动245 行未改动全部展开~~~cppvoid dfs(int u,int fa){ int son=0; dfn[u]=low[u]=++tot; st[++tot]=u; st[++top]=u; for(auto v:G[u]){ if(v==fa) continue; if(!dfn[v]){ dfs(v,u);32 行未改动~~~cppvoid dfs(int u,int fa){ int son=0; dfn[u]=low[u]=++tot; st[++tot]=u; st[++top]=u; for(auto v:G[u]){ if(v==fa) continue; if(!dfn[v]){ dfs(v,u);31 行未改动