<% this.title = contest.title + ' - 比赛' %> <% include header %>

<%= contest.title %>

<%- contest.subtitle %>
<% let unveiled = (isSupervisior || syzoj.utils.getCurrentDate() >= contest.start_time); %> <% const seeResult = (isSupervisior || contest.ended) %> <% let start = syzoj.utils.formatDate(contest.start_time), end = syzoj.utils.formatDate(contest.end_time); %> <% if (contest.running && start.split(' ')[0] === end.split(' ')[0]) { start = start.split(' ')[1]; end = end.split(' ')[1]; } %>
<%= start %>
<%= end %>
<% let timePercentage = Math.floor(Math.min(1, (syzoj.utils.getCurrentDate() - contest.start_time) / (contest.end_time - contest.start_time)) * 100); %>
<% if(seeResult) { %> 排行榜 <% } %> <% let submissionsUrl = seeResult ? syzoj.utils.makeUrl(['submissions'], {contest: contest.id}) : syzoj.utils.makeUrl(['contest', contest.id, 'submissions']); %> 提交记录 <% if (isSupervisior) { %> 编辑比赛 <% } %>
<% if (contest.information) { %>

信息与公告

<%- contest.information %>
<% } %> <% if (unveiled) { %> <% } %>
<% include footer %>