正文
增加 1 行删除 1 行
45 行未改动464748495051525354107 行未改动全部展开45 行未改动return res;}}tree1,tree2;void dfs(int now,int fa){dept[now]=dept[fa]+1;pre[now][0]=fa;for(int to:rood[now]){if(to==fa)continue;dfs(to,now);107 行未改动全部展开45 行未改动464748495051525354107 行未改动全部展开45 行未改动return res;}}tree1,tree2;void dfs(int now,int fa){dept[now]=dept[fa]+1;pre[now][0]=fa;for(int to:rood[now]){if(to==fa)continue;dfs(to,now);107 行未改动全部展开