摘要: dfs 序 就是按照 dfs 的顺序遍历整棵树的时候再加一个数组记录经过的编号就行了。 #include <bits/stdc++.h> #define V e[i].v using namespace std;int rd(){ int w=0,v=1;char c=getchar();while 阅读全文
posted @ 2022-04-15 12:35 AIskeleton 阅读(25) 评论(0) 推荐(0) 编辑