mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
feat: ignore CANCELED in contest acm mode (#950)
This commit is contained in:
1 parent
e9ba5edf9f
commit
b804fbbe6c
1 file changed
+1
-1
@@ -105,7 +105,7 @@ const acm = buildContestRule({
|
||||
for (const j of journal) {
|
||||
if (!tdoc.pids.includes(j.pid)) continue;
|
||||
if (!this.submitAfterAccept && display[j.pid]?.status === STATUS.STATUS_ACCEPTED) continue;
|
||||
if (![STATUS.STATUS_ACCEPTED, STATUS.STATUS_COMPILE_ERROR, STATUS.STATUS_FORMAT_ERROR].includes(j.status)) {
|
||||
if (![STATUS.STATUS_ACCEPTED, STATUS.STATUS_COMPILE_ERROR, STATUS.STATUS_FORMAT_ERROR, STATUS.STATUS_CANCELED].includes(j.status)) {
|
||||
naccept[j.pid]++;
|
||||
}
|
||||
const real = Math.floor((j.rid.getTimestamp().getTime() - tdoc.beginAt.getTime()) / 1000);
|
||||
|
||||
Reference in new issue
Block a user