feat(contest): ACM 赛制下不对 0 分题目计算罚时
All checks were successful
continuous-integration/drone/push Build is passing

Co-authored-by: Fengyu Xie <63272948+Ignotus0@users.noreply.github.com>
Co-authored-by: Baoshuo Ren <47095648+renbaoshuo@users.noreply.github.com>
This commit is contained in:
Baoshuo Ren 2023-02-08 11:58:44 +08:00
parent 3b05222867
commit 7e1e31283e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -387,6 +387,10 @@ function calcStandings($contest, $contest_data, &$score, &$standings, $cfg = [])
}
}
if ($final_scr == 0) {
$penalty = 0;
}
$score[$uname][$pr] = [
$final_scr,
$penalty,