vjudge: Codeforces::Gym

This commit is contained in:
undefined committed 2022-07-08 09:28:29 +08:00
1 parent 5dd7fe935b
commit 6f791903d4
4 files changed
+121 -44

No files matched your search

+4 -2
View File
@@ -8,6 +8,7 @@ export interface RemoteAccount {
proxy?: string;
query?: string;
frozen?: string;
problemLists?: string[];
}
declare module 'hydrooj/src/interface' {
interface Collections {
@@ -21,7 +22,7 @@ declare module 'hydrooj/src/interface' {
}
export interface IBasicProvider {
ensureLogin(): Promise<boolean | string>;
getProblem(id: string): Promise<{
getProblem(id: string, meta: Record<string, any>): Promise<{
title: string;
data: Record<string, any>;
files: Record<string, any>;
@@ -29,7 +30,8 @@ export interface IBasicProvider {
content: string;
difficulty?: number;
}>;
listProblem(page: number, resync: boolean): Promise<string[]>;
entryProblemLists?: string[];
listProblem(page: number, resync: boolean, listId: string): Promise<string[]>;
submitProblem(id: string, lang: string, code: string, info: any, next: any, end: any): Promise<string>;
waitForSubmission(id: string, next: any, end: any): Promise<void>;
}