mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: change config.detail to enum (#1000)
This commit is contained in:
1 parent
fb04aaacb9
commit
ed830e119e
13 files changed
+41
-29
No files matched your search
@@ -36,6 +36,8 @@ export interface SubtaskConfig {
|
||||
cases?: TestCaseConfig[];
|
||||
}
|
||||
|
||||
export type DetailType = 'full' | 'case' | 'none';
|
||||
|
||||
export interface ProblemConfigFile {
|
||||
type?: ProblemType;
|
||||
subType?: string;
|
||||
@@ -48,7 +50,7 @@ export interface ProblemConfigFile {
|
||||
num_processes?: number;
|
||||
user_extra_files?: string[];
|
||||
judge_extra_files?: string[];
|
||||
detail?: boolean;
|
||||
detail?: DetailType | boolean;
|
||||
answers?: Record<string, [string | string[], number]>;
|
||||
redirect?: string;
|
||||
cases?: TestCaseConfig[];
|
||||
|
||||
Reference in new issue
Block a user