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

+11
View File
@@ -1,3 +1,5 @@
import { NormalizedSubtask } from '@hydrooj/utils/lib/utils';
import { JudgeResultBody, ProblemConfigFile } from 'hydrooj';
import { CopyInFile } from './sandbox';
export interface Execute {
@@ -6,3 +8,12 @@ export interface Execute {
copyIn: Record<string, CopyInFile>;
time?: number;
}
export type NextFunction = (body: Partial<JudgeResultBody>) => Promise<void> | void;
export interface ParsedConfig extends Omit<ProblemConfigFile, 'time' | 'memory' | 'subtasks'> {
count: number;
time: number;
memory: number;
subtasks: NormalizedSubtask[];
}