From 09894e991317bd6e87f1c641d10a172a8a68e1bc Mon Sep 17 00:00:00 2001 From: Kaifeng Lyu Date: Sat, 26 Sep 2020 00:07:08 +0800 Subject: [PATCH] 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. --- judger/uoj_judger/builtin/judger/judger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judger/uoj_judger/builtin/judger/judger.cpp b/judger/uoj_judger/builtin/judger/judger.cpp index 273cd32..118e15b 100644 --- a/judger/uoj_judger/builtin/judger/judger.cpp +++ b/judger/uoj_judger/builtin/judger/judger.cpp @@ -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);