Sfoglia il codice sorgente

java提供三倍运算时间

blumonilr 5 anni fa
parent
commit
75fb3186c6
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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]}]}