judge: use basename instead of parseFilename

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent 7bf2e73561
commit e9787f2ba5
8 files changed
+34 -61

No files matched your search

@@ -23,31 +23,6 @@ export interface RuntimeContext {
executeUser?: Execute;
}
export interface Config {
type: string;
subType?: string;
time: string;
memory: string;
subtasks?: NormalizedSubtask[];
count?: number;
checker_type?: string;
detail?: boolean;
filename?: string;
judge_extra_files: string[];
user_extra_files: string[];
template?: Record<string, [string, string]>;
checker?: string;
validator?: string;
std?: string;
hack?: string;
interactor?: string;
answers?: Record<string, [answer: string | string[], score: number]>;
}
export interface ContextSubTask {
subtask: NormalizedSubtask;
score: number;