File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,8 @@ function fetch_executable_internal(
333
333
$ execbuildpath = $ execbuilddir . '/build ' ;
334
334
$ execrunpath = $ execbuilddir . '/run ' ;
335
335
$ execrunjurypath = $ execbuilddir . '/runjury ' ;
336
- if (!is_dir ($ execdir ) || !file_exists ($ execdeploypath )) {
336
+ if (!is_dir ($ execdir ) || !file_exists ($ execdeploypath ) ||
337
+ ($ combined_run_compare && file_get_contents (LIBJUDGEDIR . '/run-interactive.sh ' )!==file_get_contents ($ execrunpath ))) {
337
338
system ('rm -rf ' . dj_escapeshellarg ($ execdir ) . ' ' . dj_escapeshellarg ($ execbuilddir ));
338
339
system ('mkdir -p ' . dj_escapeshellarg ($ execbuilddir ), $ retval );
339
340
if ($ retval !== 0 ) {
@@ -1399,7 +1400,7 @@ function judge(array $judgeTask): bool
1399
1400
1400
1401
$ input = $ tcfile ['input ' ];
1401
1402
$ output = $ tcfile ['output ' ];
1402
- $ passLimit = $ run_config ['pass_limit ' ];
1403
+ $ passLimit = $ run_config ['pass_limit ' ] ?? 1 ;
1403
1404
for ($ passCnt = 1 ; $ passCnt <= $ passLimit ; $ passCnt ++) {
1404
1405
$ nextPass = false ;
1405
1406
if ($ passLimit > 1 ) {
You can’t perform that action at this time.
0 commit comments