正文
增加 1 行删除 1 行
73 行未改动74757677787980818256 行未改动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 行未改动73 行未改动74757677787980818256 行未改动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 行未改动