Procházet zdrojové kódy

java提供三倍运算时间

blumonilr před 5 roky
rodič
revize
75fb3186c6
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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]}]}