From 33cb8aca38d599fb0e3029c7cd30964892c6aa8d Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 23 Jan 2024 00:00:41 +0800 Subject: [PATCH] judge: cases: disable testdata count check for objective --- packages/hydrojudge/src/cases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrojudge/src/cases.ts b/packages/hydrojudge/src/cases.ts index 58157518f..305e29712 100644 --- a/packages/hydrojudge/src/cases.ts +++ b/packages/hydrojudge/src/cases.ts @@ -12,7 +12,7 @@ import { NextFunction, ParsedConfig } from './interface'; import { ensureFile, parseMemoryMB } from './utils'; function isValidConfig(config) { - if (config.count > (getConfig('testcases_max') || 100)) { + if (config.type !== 'objective' && config.count > (getConfig('testcases_max') || 100)) { throw new FormatError('Too many testcases. Cancelled.'); } const time = Math.sum(...config.subtasks.flatMap((subtask) => subtask.cases.map((c) => c.time)));