mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&judge&ui: hack submission
This commit is contained in:
1 parent
07ab4f1bbd
commit
4e0c9bb00a
17 files changed
+256
-128
No files matched your search
@@ -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[];
|
||||
}
|
||||
Reference in new issue
Block a user