正文
增加 1 行删除 1 行
131 行未改动全部展开1321331341351361371381391409 行未改动131 行未改动全部展开for (int j = 0; j <= height[v] + 1; j++) {chmin(res[j][0], res[i][j] + C[v] * std::max(0, j - i));}}return res;};auto dp = dfs(dfs, 0, -1);9 行未改动131 行未改动全部展开1321331341351361371381391409 行未改动131 行未改动全部展开for (int j = 0; j <= height[v] + 1; j++) {chmin(res[j][0], res[i][j] + C[v] * std::max(0, j - i));}}return res;};auto dp = dfs(dfs, 0, -1);9 行未改动