mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 11:38:42 +00:00
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:
parent
8692ff11a7
commit
09894e9913
@ -34,7 +34,7 @@ void ordinary_test() {
|
|||||||
po.scr = scale_score(po.scr, conf_int("point_score", i, 100 / n));
|
po.scr = scale_score(po.scr, conf_int("point_score", i, 100 / n));
|
||||||
add_point_info(po);
|
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++) {
|
for (int i = 1; i <= n; i++) {
|
||||||
report_judge_status_f("Judging Test #%d", i);
|
report_judge_status_f("Judging Test #%d", i);
|
||||||
PointInfo po = test_point("answer", i);
|
PointInfo po = test_point("answer", i);
|
||||||
|
Loading…
Reference in New Issue
Block a user