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

<%= contest.title %>

<% let start = syzoj.utils.formatDate(contest.start_time), end = syzoj.utils.formatDate(contest.end_time); %> <% if (syzoj.utils.getCurrentDate() >= contest.start_time && syzoj.utils.getCurrentDate() < contest.end_time && 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 (contest.allowedEdit || !contest.running) { %>
排行榜 <% if (contest.allowedEdit) { %> 编辑比赛 <% } %>
<% } %>

描述

<%- contest.information %>
<% let i = 0; for (let problem of problems) { i++; %> <% } %>
状态 题目 代码
<% if (problem.judge_id) { %> <% if (problem.status === true) { %> <% } else if (problem.status !== false) { %> <%= problem.status %> <% } %> <% } %> <%= syzoj.utils.removeTitleTag(problem.problem.title) %> <% if (problem.judge_id) { %> <% } %>
<% include footer %>