create a problem.

This commit is contained in:
2023-03-29 19:25:05 +08:00
parent 82e45b9161
commit 0ef36abb13
3 changed files with 149 additions and 28 deletions

View File

@@ -277,3 +277,27 @@ export interface Testcase {
output_name: string
score?: string
}
interface AlterProblem {
spj_language: string
spj_code: string
spj_compile_ok: boolean
test_case_id: string
test_case_score: Testcase[]
contest_id?: string
}
type ExcludeKeys =
| "id"
| "created_by"
| "create_time"
| "last_update_time"
| "my_status"
| "contest"
| "statistic_info"
| "accepted_number"
| "submission_number"
| "total_score"
export type BlankProblem = Omit<Problem, ExcludeKeys> &
AlterProblem & { id?: number }