<% this.title = '排名 - ' + contest.title %> <% include header %>
<% if (contest.type === 'acm') { %> <% } %> <% for (let i = 0; i < problems.length; i++) { %> <% } %> <% if (contest.type === 'noi' || contest.type === 'ioi') { %> <% } %> <% let i = 0; for (let item of ranklist) { i++ let latest = contest.start_time, timeSum = 0, unacceptedCount = 0; %> <% if (contest.type === 'acm') { for (let problem of problems) { if (item.player.score_details[problem.id] && item.player.score_details[problem.id].accepted) { timeSum += (item.player.score_details[problem.id].acceptedTime - contest.start_time) + (item.player.score_details[problem.id].unacceptedCount * 20 * 60); unacceptedCount += item.player.score_details[problem.id].unacceptedCount; } } %> <% } %> <% for (let problem of problems) { %> <% if (!item.player.score_details[problem.id]) { %> <% } else if (contest.type === 'acm') { %> <% } else if (contest.type === 'noi' || contest.type === 'ioi') { %> <% } %> <% } %> <% if (contest.type === 'noi' || contest.type === 'ioi') { %> <% } %> <% } %>
# 用户名通过数量 罚时 <%= syzoj.utils.removeTitleTag(problems[i].title) %> 总分
<% if (i == 1) { %>
<% } else if (i == 2) { %>
<% } else if (i == 3) { %>
<% } else { %>
<% } %> <%= i %>
<%= item.user.username %><% if (item.user.nameplate) { %><%- item.user.nameplate %><% } %> <%= item.player.score %> <%= syzoj.utils.formatTime(timeSum) %> <% if (item.player.score_details[problem.id].accepted) { %> <% if (item.player.score_details[problem.id].unacceptedCount) { %> +<%= item.player.score_details[problem.id].unacceptedCount %> <% } else { %> + <% } %>
<%= syzoj.utils.formatTime(item.player.score_details[problem.id].acceptedTime - contest.start_time) %>
<% } else if (item.player.score_details[problem.id].unacceptedCount) { %> -<%= item.player.score_details[problem.id].unacceptedCount %> <% } %>
<%= item.player.score_details[problem.id].score %>
<%= syzoj.utils.formatTime(item.player.score_details[problem.id].judge_state.submit_time - contest.start_time) %> <% latest = Math.max(latest, item.player.score_details[problem.id].judge_state.submit_time) %>
<%= item.player.score %>
<%= syzoj.utils.formatTime(latest - contest.start_time) %>
<% include footer %>