mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: cases: disable testdata count check for objective
This commit is contained in:
1 file changed
+1
-1
@@ -12,7 +12,7 @@ import { NextFunction, ParsedConfig } from './interface';
|
|||||||
import { ensureFile, parseMemoryMB } from './utils';
|
import { ensureFile, parseMemoryMB } from './utils';
|
||||||
|
|
||||||
function isValidConfig(config) {
|
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.');
|
throw new FormatError('Too many testcases. Cancelled.');
|
||||||
}
|
}
|
||||||
const time = Math.sum(...config.subtasks.flatMap((subtask) => subtask.cases.map((c) => c.time)));
|
const time = Math.sum(...config.subtasks.flatMap((subtask) => subtask.cases.map((c) => c.time)));
|
||||||
|
|||||||
Reference in new issue
Block a user