用链式前向星双向建边的注意你的 dfs,别tm像我一样被硬控起码半小时
if(e[i].to==fa) return ;
↑ 38pts
if(e[i].to==fa) continue ;
↑ 100pts