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

Commit 1c1116c

Browse files
fix a bug
1 parent e79ae44 commit 1c1116c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

judge/case/auto.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ async function read1(folder, files, checkFile) {
116116
subtask[i].cases.sort((a, b) => (a.id - b.id));
117117
subtasks.push(subtask[i]);
118118
}
119-
const base = Math.floor(100 / subtask.length);
120-
const extra = subtasks.length - (100 % subtask.length);
119+
const base = Math.floor(100 / subtasks.length);
120+
const extra = subtasks.length - (100 % subtasks.length);
121121
const config = { count: 0, subtasks };
122122
for (const i in subtask) {
123123
if (extra < i) subtask[i].score = base;

0 commit comments

Comments
 (0)