mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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';
|
||||
|
||||
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)));
|
||||
|
||||
Reference in new issue
Block a user