Add interactive option

This commit is contained in:
cuom1999 2022-04-14 14:14:58 -05:00
parent 122cd0fa73
commit ff8f12c134
6 changed files with 112 additions and 5 deletions

View file

@ -210,9 +210,16 @@ class ProblemDataCompiler(object):
if self.data.output_prefix is not None:
init['output_prefix_length'] = self.data.output_prefix
if self.data.checker:
init['checker'] = make_checker(self.data)
if self.data.checker == 'interact':
init['interactive'] = {
'files': split_path_first(self.data.interactive_judge.name)[1]
}
init['unbuffered'] = True
else:
init['checker'] = make_checker(self.data)
else:
self.data.checker_args = ''
return init
def compile(self):