add result panel.

This commit is contained in:
2023-01-10 16:16:14 +08:00
parent a3456595a5
commit e3db109317
22 changed files with 714 additions and 172 deletions

View File

@@ -1,72 +1,65 @@
export enum SubmissionStatus {
compile_error = -2,
wrong_answer = -1,
accepted = 0,
time_limit_exceeded = 1 | 2,
memory_limit_exceeded = 3,
runtime_error = 4,
system_error = 5,
pending = 6,
judging = 7,
partial_accepted = 8,
submitting = 9,
}
export const JUDGE_STATUS = {
"-2": {
name: "Compile Error",
short: "CE",
color: "yellow",
type: "warning",
name: "编译失败",
type: "error",
},
"-1": {
name: "Wrong Answer",
short: "WA",
color: "red",
name: "答案错误",
type: "error",
},
"0": {
name: "Accepted",
short: "AC",
color: "green",
name: "答案正确",
type: "success",
},
"1": {
name: "Time Limit Exceeded",
short: "TLE",
color: "red",
name: "运行超时",
type: "error",
},
"2": {
name: "Time Limit Exceeded",
short: "TLE",
color: "red",
name: "运行超时",
type: "error",
},
"3": {
name: "Memory Limit Exceeded",
short: "MLE",
color: "red",
name: "内存超限",
type: "error",
},
"4": {
name: "Runtime Error",
short: "RE",
color: "red",
name: "运行时错误",
type: "error",
},
"5": {
name: "System Error",
short: "SE",
color: "red",
name: "系统错误",
type: "error",
},
"6": {
name: "Pending",
color: "yellow",
name: "等待评分",
type: "warning",
},
"7": {
name: "Judging",
color: "blue",
name: "正在评分",
type: "info",
},
"8": {
name: "Partial Accepted",
short: "PAC",
color: "blue",
type: "info",
name: "部分正确",
type: "warning",
},
"9": {
name: "Submitting",
color: "yellow",
type: "warning",
name: "正在提交",
type: "info",
},
}