-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht.js
50 lines (44 loc) · 1.28 KB
/
t.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = async function vjudge(judge_state, problem, onProgress) {
const compile = {
status: 2, /* Done 2 : Failed */
message: 'aaaaaaa'
};
// 对于每个测试点,status 的值对应不同状态
/*
OutputLimitExceeded 6,
MemoryLimitExceeded 4,
TimeLimitExceeded 5,
WrongAnswer 2,
RuntimeError 8,
Invalid -1,
Accepted 1,
PartiallyCorrect 3
*/
const judge = {
"subtasks": [
{
"cases": [
{
"status": 0,
"result": {
"type": 6,
"time": 3,
"memory": 384,
"userError": "",
"userOutput": "",
"scoringRate": 1,
"systemMessage": "Exited with return code 0"
}
}
],
// "status": 13,
"score": 100
}
]
}
onProgress({
taskId: judge_state.task_id,
type: 4 /* Finished 4 : Progress 3*/,
progress: { compile: compile, judge: judge }
});
}