judge: add multi-pass problem support (#1167)

This commit is contained in:
panda authored and GitHub committed 2026-06-06 18:28:33 +08:00
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>;
}