%
if (typeof contest === 'undefined') contest = null;
if (contest) {
this.title = this.alpha(pid) + '. ' + syzoj.utils.removeTitleTag(problem.title) + ' - ' + contest.title + ' - 比赛';
} else {
this.title = problem.title + ' - 题目';
}
%>
<% include header %>
内存限制: <%= problem.memory_limit %> MiB
时间限制: <%= problem.time_limit %> ms
<% if (problem.file_io) { %>
输入文件: <%= problem.file_io_input_name %>
输出文件: <%= problem.file_io_output_name %>
<% } else { %>
标准输入输出
<% } %>
<% if (!contest) { %>
<% } %>
<% if (problem.description) { %>
<%- problem.description %>
<% } %>
<% if (problem.input_format) { %>
<%- problem.input_format %>
<% } %>
<% if (problem.output_format) { %>
<%- problem.output_format %>
<% } %>
<% if (problem.example) { %>
<% } %>
<% if (problem.limit_and_hint) { %>
<%- problem.limit_and_hint %>
<% } %>
<% if (problem.tags && problem.tags.length) { %>
<% } %>
<% let noSubmit = false; %>
<%
if (typeof contest !== 'undefined' && contest && contest.ended) {
noSubmit = true;
}
%>
<% if (!noSubmit) { %>
<%
let formUrl;
if (contest) formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit'], { contest_id: contest.id });
else formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit']);
%>
<% } %>
<% include footer %>