core: contest.acm: ignore problems that are not in contest

This commit is contained in:
undefined committed 2024-11-23 15:09:58 +08:00
1 parent e00fa9ee70
commit 92499d4d4b
1 file changed
+1
+1
View File
@@ -103,6 +103,7 @@ const acm = buildContestRule({
// eslint-disable-next-line @typescript-eslint/no-use-before-define
const lockAt = isLocked(tdoc) ? tdoc.lockAt : null;
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)) {
naccept[j.pid]++;