注意一下找完重心后进入的那个是 edge[i].to 还是找到的重心!
edge[i].to
我傻傻的把:
dfs(e.to), solve(g);
写成了:
dfs(e.to), solve(e.to);