Browse Source

超时提醒但允许实行,最多允许10倍的计算时间

master
richie 5 years ago
parent
commit
22303df3ef
  1. 1
      src/runner/judge.ts

1
src/runner/judge.ts

@ -171,6 +171,7 @@ export async function judgeStandard(task: StandardRunTask)
const [resultPromise] = await runProgram(language, const [resultPromise] = await runProgram(language,
binaryDirectory, binaryDirectory,
workingDir, workingDir,
// 容许程序最高执行时间超过设定时间的10倍,方便选手了解自己的算法举例要求有多远
task.time * 10, task.time * 10,
task.memory * 1024 * 1024, task.memory * 1024 * 1024,
stdinRedirectionName, stdinRedirectionName,

Loading…
Cancel
Save