mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core&judge&ui: hack submission
This commit is contained in:
1 parent
07ab4f1bbd
commit
4e0c9bb00a
17 files changed
+256
-128
No files matched your search
@@ -181,6 +181,7 @@ export interface ProblemConfig {
|
||||
type: string;
|
||||
subType?: string;
|
||||
target?: string;
|
||||
hackable?:boolean;
|
||||
}
|
||||
|
||||
export interface PlainContentNode {
|
||||
@@ -293,17 +294,24 @@ export interface RecordDoc {
|
||||
judgeAt: Date;
|
||||
status: number;
|
||||
progress?: number;
|
||||
/** pretest */
|
||||
/** pretest & hack */
|
||||
input?: string;
|
||||
/** 0 if pretest&script */
|
||||
contest?: ObjectID;
|
||||
|
||||
files?: Record<string, string>
|
||||
}
|
||||
|
||||
export interface JudgeMeta {
|
||||
problemOwner: number;
|
||||
}
|
||||
|
||||
export interface JudgeRequest extends Omit<RecordDoc, '_id' | 'testCases'> {
|
||||
priority: number;
|
||||
type: 'judge';
|
||||
rid: ObjectID;
|
||||
config: ProblemConfigFile & { problemOwner: number };
|
||||
config: ProblemConfigFile;
|
||||
meta: JudgeMeta;
|
||||
data: FileInfo[];
|
||||
source: string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user