mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix negative ntry in ledo scoreboard (#1056)
This commit is contained in:
1 parent
fd048a936d
commit
7e194e5d9f
1 file changed
+1
-1
@@ -566,7 +566,7 @@ const ledo = buildContestRule({
|
||||
detail[j.pid] = {
|
||||
...j,
|
||||
penaltyScore,
|
||||
ntry: ntry[j.pid] - 1,
|
||||
ntry: Math.max(0, ntry[j.pid] - 1),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user