Browse Source

feat: 修改比赛得分规则

feature/unlimited-reply
zjz1993 5 years ago
parent
commit
18f03587c3
  1. 6
      libs/judger.js

6
libs/judger.js

@ -172,7 +172,11 @@ async function connect() {
progressPusher.cleanupProgress(result.taskId);
if (!judge_state) return;
judge_state.score = convertedResult.score;
if ( convertedResult.time < 900) {
judge_state.score = convertedResult.score + (convertedResult.time / 1000).toFixed(2)*convertedResult.score;
} else {
judge_state.score = convertedResult.score;
}
judge_state.pending = false;
judge_state.status = convertedResult.statusString;
judge_state.total_time = convertedResult.time;

Loading…
Cancel
Save