fix(judger): fix a bug on subtask type (#75)

Currently, if there is only one subtask, the bulitin judger automatically enters the ACM mode.
However, if the subtask has type "min", the judger should not do this. This commit fixes this bug.
This commit is contained in:
Kaifeng Lyu 2020-09-26 00:07:08 +08:00 committed by GitHub
parent 8692ff11a7
commit 09894e9913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ void ordinary_test() {
po.scr = scale_score(po.scr, conf_int("point_score", i, 100 / n));
add_point_info(po);
}
} else if (nT == 1) {
} else if (nT == 1 && conf_str("subtask_type", 1, "packed") == "packed") {
for (int i = 1; i <= n; i++) {
report_judge_status_f("Judging Test #%d", i);
PointInfo po = test_point("answer", i);