mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core: contest.acm: ignore problems that are not in contest
This commit is contained in:
1 file changed
+1
@@ -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]++;
|
||||
|
||||
Reference in new issue
Block a user