% this.title = '排名 - ' + contest.title %> <% include header %>
# | 用户名 | <% if (contest.type === 'acm') { %>通过数量 | 罚时 | <% } %> <% for (let i = 0; i < problems.length; i++) { %><%= syzoj.utils.removeTitleTag(problems[i].title) %> | <% } %> <% if (contest.type === 'noi' || contest.type === 'ioi') { %>总分 | <% } %>||
---|---|---|---|---|---|---|---|
<% if (i == 1) { %>
<% } else if (i == 2) { %>
<% } else if (i == 3) { %>
<% } else { %>
<% } %>
<%= i %>
|
<%= item.user.username %><% if (item.user.nameplate) { %><%- item.user.nameplate %><% } %> | <% 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; } } %><%= item.player.score %> | <%= syzoj.utils.formatTime(timeSum) %> | <% } %> <% for (let problem of problems) { %> <% if (!item.player.score_details[problem.id]) { %><% } else if (contest.type === 'acm') { %> |
<% 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 %>
<% } %>
|
<% } else if (contest.type === 'noi' || contest.type === 'ioi') { %>
<%= 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) %>
|
<% } %>
<% } %>
<% if (contest.type === 'noi' || contest.type === 'ioi') { %>
<%= item.player.score %>
<%= syzoj.utils.formatTime(latest - contest.start_time) %>
|
<% } %>