% this.title = '题库' %> <% include header %> <% let tagIDs = []; if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id); %>
提交状态 | <% } %><%- createSortableTitle('id', '编号', true) %> | <%- createSortableTitle('title', '题目名称', true) %> | <%- createSortableTitle('ac_num', '通过', false) %> | <%- createSortableTitle('submit_num', '提交', false) %> | 通过率 |
---|---|---|---|---|---|
<% if (problem.judge_state) { %> <% } %> | <% } %><%= problem.id %> |
<%= problem.title %>
<% if (!problem.is_public) { %>未公开<% } %>
<%
if (problem.tags) {
for (let tag of problem.tags) {
let tagListToggledThisTag;
if (!tagIDs.includes(tag.id)) tagListToggledThisTag = tagIDs.concat([tag.id]);
else tagListToggledThisTag = tagIDs.filter(x => x != tag.id);
tagListToggledThisTag = tagListToggledThisTag.sort().join(',');
let url = tagListToggledThisTag ? syzoj.utils.makeUrl(['problems', 'tag', tagListToggledThisTag]) : syzoj.utils.makeUrl(['problems']);
%>
<%= tag.name %>
<%
}
}
%>
|
<%= problem.ac_num %> | <%= problem.submit_num %> | <%= problem.submit_num != 0 ? (((problem.ac_num / problem.submit_num * 100) || 0).toFixed(2) + '%') : '-' %> |