From 5e529869df90f9e5507940e6ba1e6b7c44e97111 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Thu, 13 Oct 2016 22:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8judger=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=B8=B8=E9=87=8F=E6=9B=BF=E6=8D=A2magic=20number?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge_client.py b/judge_client.py index 50f0b73..cf657d9 100644 --- a/judge_client.py +++ b/judge_client.py @@ -137,7 +137,7 @@ class JudgeClient(object): run_result["result"] = _judger.RESULT_WRONG_ANSWER elif spj_result == SPJ_ERROR: run_result["result"] = _judger.RESULT_SYSTEM_ERROR - run_result["error"] = -11 + run_result["error"] = _judger.ERROR_SPJ_ERROR else: run_result["output_md5"], is_ac, run_result["output"] = self._compare_output(test_case_file_id) # -1 == Wrong Answer