Jelajahi Sumber

java提供三倍运算时间

blumonilr 5 tahun lalu
induk
melakukan
75fb3186c6
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      web/judgement.py

+ 1 - 0
web/judgement.py

@@ -88,6 +88,7 @@ def judge(src_path, td_path, td_total, time_limit, memory_limit, language):
             return {'result_list': [{'result': RESULT_STR[7]}]}
         args = ['java', 'Main']
         src_file = 'Main.class'
+        time_limit *= 3
     elif language == 'python':
         if not compile_python(src_path):
             return {'result_list': [{'result': RESULT_STR[7]}]}