Browse Source

Fix score bug.

master
t123yh 7 years ago
parent
commit
4dbdeadf41
  1. 2
      src/daemon/judge/process.ts

2
src/daemon/judge/process.ts

@ -91,7 +91,7 @@ export async function processJudgement(
// If any testcase has failed, the score is invaild.
currentResult.score = -1;
} else {
currentResult.score = calculateSubtaskScore(currentTask.score, currentResult.cases.map(c => c.result ? c.result.scoringRate : 0)) * currentTask.score;
currentResult.score = calculateSubtaskScore(currentTask.type, currentResult.cases.map(c => c.result ? c.result.scoringRate : 0)) * currentTask.score;
}
winston.verbose(`Subtask ${subtaskIndex}, finished`);
})());

Loading…
Cancel
Save