Skip to content

Commit

Permalink
Merge pull request #80 from zjhzxhz/master
Browse files Browse the repository at this point in the history
Fix bugs for comparing outputs with Wrong Answer and Presentation Error status
  • Loading branch information
sunner committed Nov 14, 2015
2 parents 6840058 + 39baad5 commit faa5c7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion judgelib.php
Expand Up @@ -158,7 +158,9 @@ protected function diff() {
return ONLINEJUDGE_STATUS_WRONG_ANSWER;
$tok = strtok(" \n\r\t");
}

if ($tok !== false) {
return ONLINEJUDGE_STATUS_WRONG_ANSWER;
}
return ONLINEJUDGE_STATUS_PRESENTATION_ERROR;
}
}
Expand Down

0 comments on commit faa5c7a

Please sign in to comment.