judge: 修改ini配置下默认内存限制为256MB

This commit is contained in:
undefined committed 2020-11-10 22:15:38 +08:00
1 parent 1eb3e0797f
commit 591acbb285
3 files changed
+6 -7

No files matched your search

@@ -10,7 +10,7 @@ function convert(ini: string) {
cases: [{ input: `input/${input}`, output: `output/${output}` }],
score: parseInt(score, 10),
time: `${time}s`,
memory: '128m',
memory: '256m',
};
if (!Number.isNaN(parseInt(memory, 10))) cur.memory = `${Math.floor(parseInt(memory, 10) / 1024)}m`;
res.subtasks.push(cur);