core&judge&ui: hack submission

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent 07ab4f1bbd
commit 4e0c9bb00a
17 files changed
+256 -128

No files matched your search

@@ -14,6 +14,7 @@ export async function parseConfig(config: string | ProblemConfigFile = {}) {
timeMin: Number.MAX_SAFE_INTEGER,
timeMax: 0,
type: cfg.type || 'default',
hackable: cfg.validator && cfg.checker && !['default', 'strict'].includes(cfg.checker_type),
};
if (cfg.subType) result.subType = cfg.subType;
if (cfg.target) result.target = cfg.target;