使用judger中的常量替换magic number

This commit is contained in:
virusdefender 2016-10-13 22:38:41 +08:00
parent dd96727361
commit 5e529869df

View File

@ -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