摘要: dfs序 void dfs(int x,int fa){ in[x] = ++cnt; for (int i = head[x];i;i = ed[i].nxt){ int to = ed[i].to; if (to == fa) continue; dfs(to,x); } out[x] = cn 阅读全文
posted @ 2023-02-26 14:39 小又又yyyy 阅读(16) 评论(0) 推荐(0) 编辑