Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions problemtools/judge/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ def _parse_validator_result(
additional_info=_get_feedback(feedback_dir),
)

score_file = feedback_dir / 'score.txt'

if ret == 43:
if score_file.is_file():
return SubmissionResult('JE', reason='validator produced "score.txt" on a WA verdict')
return SubmissionResult('WA', additional_info=_get_feedback(feedback_dir))

# ret == 42 (AC); check score handling
score_file = feedback_dir / 'score.txt'

if not metadata.is_custom_score_allowed() and score_file.is_file():
return SubmissionResult('JE', reason='validator produced "score.txt" but problem does not have custom scoring activated')

Expand Down