mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: bug fix
This commit is contained in:
1 parent
511d08c850
commit
07ab4f1bbd
12 files changed
+111
-79
No files matched your search
@@ -167,6 +167,7 @@ export interface ProblemConfigFile {
|
||||
cases?: TestCaseConfig[];
|
||||
subtasks?: SubtaskConfig[];
|
||||
langs?: string[];
|
||||
validator?: string;
|
||||
}
|
||||
|
||||
export interface ProblemConfig {
|
||||
@@ -298,6 +299,15 @@ export interface RecordDoc {
|
||||
contest?: ObjectID;
|
||||
}
|
||||
|
||||
export interface JudgeRequest extends Omit<RecordDoc, '_id' | 'testCases'> {
|
||||
priority: number;
|
||||
type: 'judge';
|
||||
rid: ObjectID;
|
||||
config: ProblemConfigFile & { problemOwner: number };
|
||||
data: FileInfo[];
|
||||
source: string;
|
||||
}
|
||||
|
||||
export interface ScoreboardNode {
|
||||
type: 'string' | 'rank' | 'user' | 'email' | 'record' | 'records' | 'problem' | 'solved' | 'time' | 'total_score';
|
||||
value: string;
|
||||
|
||||
Reference in new issue
Block a user