Skip to content

Commit

Permalink
fix ojcmp mle (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Handgrip authored Jun 20, 2022
1 parent 993b4ce commit 50c8ce6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Utilities/Judge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ export class NormalJudgeAgent extends JudgeAgent {
if (judgeResult1 !== undefined) {
return judgeResult1;
}

const cmpExec: Executable = {
source: {
hashsum:
Expand All @@ -421,8 +422,13 @@ export class NormalJudgeAgent extends JudgeAgent {
arch: "x64",
options: {},
},
limit: this.judge.judge.user.limit,
limit: { ...this.judge.judge.user.limit },
};
cmpExec.limit.runtime.memory = Math.max(
cmpExec.limit.runtime.memory,
16 * 1024 * 1024
);

const [cmpExecutableAgent, judgeResult2] =
await this.compileAndFillExtra(
ExecType.System,
Expand Down

0 comments on commit 50c8ce6

Please sign in to comment.