其他部分没问题,但注释掉判断就过不了了。 不加注释是能过的。求问?
记录
void dfs(int x) { if(tag[x]) return; tag[x]=true; //if(x == tend) return; Edge(i,x) dfs(to); return; }