Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Commit bf8631c

Browse files
committed
修复score=NaN错误
1 parent 067f6f8 commit bf8631c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

judger/judger/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function judgeCase(c) {
4646
fs.writeFileSync(stdout, res.files[`${filename}.out`] || '');
4747
}
4848
let message = '';
49-
let score;
49+
let score = 0;
5050
if (status === STATUS_ACCEPTED) {
5151
if (time_usage_ms > ctxSubtask.subtask.time_limit_ms) {
5252
status = STATUS_TIME_LIMIT_EXCEEDED;

judger/judger/interactive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function judgeCase(c) {
3333
},
3434
]);
3535
let status;
36-
let score;
36+
let score = 0;
3737
let message = '';
3838
if (time_usage_ms > ctxSubtask.subtask.time_limit_ms) {
3939
status = STATUS_TIME_LIMIT_EXCEEDED;

module/hydro.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "judger",
33
"version": "1.2.0",
4-
"description": "HydroJudger"
4+
"description": "HydroJudger",
5+
"master": true
56
}

0 commit comments

Comments
 (0)