版本比较
+1 −1增加 1 行删除 1 行
73 行未改动7475767778787980818256 行未改动73 行未改动 if (y == fa) continue; d[y] = d[x] + a[y]; dfs1(y, x); }} } void dfs3(int x, int fa, int rt, int v) { if (x > ccf) return; int now = d[x] - d[rt] + S;56 行未改动