mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
onsite-toolkit: add resolver (#706)
Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
7 files changed
+510
-6
No files matched your search
@@ -0,0 +1,33 @@
|
||||
type Verdict = 'RJ' | 'AC' | 'NA';
|
||||
export interface ProblemInfo {
|
||||
color?: string; // hex color
|
||||
id: string;
|
||||
name: string; // A, B, C, ...
|
||||
}
|
||||
export interface TeamInfo {
|
||||
id: string;
|
||||
name: string;
|
||||
avatar?: string;
|
||||
institution?: string;
|
||||
exclude?: boolean; // false by default
|
||||
}
|
||||
export interface InstitiutionInfo {
|
||||
id: string;
|
||||
name: string;
|
||||
avatar?: string;
|
||||
}
|
||||
export interface SubmissionInfo {
|
||||
team: string;
|
||||
problem: string;
|
||||
verdict: Verdict;
|
||||
time: number; // in seconds
|
||||
}
|
||||
export interface ResolverInput {
|
||||
name: string;
|
||||
duration: number; // in seconds
|
||||
frozen: number; // in seconds
|
||||
problems: ProblemInfo[];
|
||||
submissions: SubmissionInfo[];
|
||||
teams: TeamInfo[];
|
||||
institutions: Record<string, InstitiutionInfo>;
|
||||
}
|
||||
Reference in new issue
Block a user