Skip to content

Commit 50c8ce6

Browse files
authored
fix ojcmp mle (#17)
1 parent 993b4ce commit 50c8ce6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Utilities/Judge.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ export class NormalJudgeAgent extends JudgeAgent {
408408
if (judgeResult1 !== undefined) {
409409
return judgeResult1;
410410
}
411+
411412
const cmpExec: Executable = {
412413
source: {
413414
hashsum:
@@ -421,8 +422,13 @@ export class NormalJudgeAgent extends JudgeAgent {
421422
arch: "x64",
422423
options: {},
423424
},
424-
limit: this.judge.judge.user.limit,
425+
limit: { ...this.judge.judge.user.limit },
425426
};
427+
cmpExec.limit.runtime.memory = Math.max(
428+
cmpExec.limit.runtime.memory,
429+
16 * 1024 * 1024
430+
);
431+
426432
const [cmpExecutableAgent, judgeResult2] =
427433
await this.compileAndFillExtra(
428434
ExecType.System,

0 commit comments

Comments
 (0)