Browse Source

Fix first blood of NOI

master
Menci 7 years ago
parent
commit
e245afcf05
  1. 2
      views/contest_ranklist.ejs

2
views/contest_ranklist.ejs

@ -37,7 +37,7 @@
i++;
let condition;
if (contest.type === 'acm') condition = item.player.score_details[problem.id] && item.player.score_details[problem.id].accepted && (minPos === -1 || item.player.score_details[problem.id].acceptedTime < min.player.score_details[problem.id].acceptedTime);
else condition = item.player.score_details[problem.id] && item.player.score_details[problem.id].score === 100 && (minPos === -1 || item.player.score_details[problem.id].time < min.player.score_details[problem.id].time);
else condition = item.player.score_details[problem.id] && item.player.score_details[problem.id].score === 100 && (minPos === -1 || item.player.score_details[problem.id].judge_state.submit_time < min.player.score_details[problem.id].judge_state.submit_time);
if (condition) {
min = item;
minPos = i;

Loading…
Cancel
Save