for(int i=head[u];i!=-1;i=e[i].next) { int v=e[i].v; if(v!=fa) dfs(v,u); }
为什么v不等于fa就深搜 v ?在这个题中v不可能出现v==fa的情况吧,这是预处理的什么写法还是怎么着??