正文
增加 5 行删除 1 行
57 行未改动58596061626364656649 行未改动11611711811912012112212324 行未改动57 行未改动for (int k = j; k < top; ++k) {int kk = tempo[k].id;t[jj][kk] = -1e9;tsum[jj][kk] = 0;if (tempo[k].pl < i) {r1 = kk; if (!l1) l1 = kk;}else {r2 = kk; if (!l2) l2 = kk;}int plus = 0;if (l2) {tsum[jj][kk] = sum[l2][r2];49 行未改动pl[j] += va[lst[r[j]]] - va[lst[l[j]-1]];}if (cnt == 0) {right = i;continue;}tp = 1; int top = 0;for (int j = i+1; j < right; ++j) {24 行未改动57 行未改动5859606162636465666749 行未改动11711811912012112212312412512612724 行未改动57 行未改动for (int k = j; k < top; ++k) {int kk = tempo[k].id;t[jj][kk] = -1e9;tsum[jj][kk] = 0;if (tempo[k].pl < i){r1 = kk; if (!l1) l1 = kk;}else {r2 = kk; if (!l2) l2 = kk;}int plus = 0;if (l2) {tsum[jj][kk] = sum[l2][r2];49 行未改动pl[j] += va[lst[r[j]]] - va[lst[l[j]-1]];}if (cnt == 0) {right = i;for (int j = 1; j <= m; ++j) {ans[j] = std::max(ans[j], pl[j]);}continue;}tp = 1; int top = 0;for (int j = i+1; j < right; ++j) {24 行未改动