mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: add multi-pass problem support (#1167)
This commit is contained in:
1 parent
01771a43e5
commit
809d1ac6ad
11 files changed
+166
-33
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import PQueue from 'p-queue';
|
||||
import { NormalizedSubtask } from '@hydrooj/common';
|
||||
import { Execute } from '../interface';
|
||||
import { CopyInFile } from '../sandbox';
|
||||
import { JudgeTask } from '../task';
|
||||
|
||||
export type Context = JudgeTask & RuntimeContext;
|
||||
@@ -29,3 +30,9 @@ export interface ContextSubTask {
|
||||
score: number;
|
||||
status: number;
|
||||
}
|
||||
|
||||
export interface MultiPassContext {
|
||||
i: number;
|
||||
input?: CopyInFile;
|
||||
state?: Record<string, CopyInFile>;
|
||||
}
|
||||
Reference in new issue
Block a user