diff --git a/web/app/libs/uoj-contest-lib.php b/web/app/libs/uoj-contest-lib.php index d8f129a..159a036 100644 --- a/web/app/libs/uoj-contest-lib.php +++ b/web/app/libs/uoj-contest-lib.php @@ -387,6 +387,10 @@ function calcStandings($contest, $contest_data, &$score, &$standings, $cfg = []) } } + if ($final_scr == 0) { + $penalty = 0; + } + $score[$uname][$pr] = [ $final_scr, $penalty,