From 24bfc7ff02345763139fbdf09fcc2f5092ed06c7 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Thu, 7 Apr 2016 18:03:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSPJClient=E5=86=85=E5=AD=98?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在使用Java的时候,内存是unlimited的,这时候要使用原始的内存数值 --- judge/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/judge/client.py b/judge/client.py index 9dc0129..faab51a 100644 --- a/judge/client.py +++ b/judge/client.py @@ -125,8 +125,9 @@ class JudgeClient(object): run_result["result"] = result["wrong_answer"] run_result["output_md5"] = output_md5 else: - spj_result = spj_client.spj(path=self._spj_path, max_cpu_time=3 * self._max_cpu_time, - max_memory=3 * self._max_memory, + spj_result = spj_client.spj(path=self._spj_path, + max_cpu_time=3 * self._max_cpu_time, + max_memory=3 * self._real_max_memory, in_path=in_file, user_out_path=out_file) if spj_result["spj_result"] == spj_client.AC: