% this.title = '题库' %> <% include header %> <% let tagIDs = []; if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id); %>
提交状态 | <% } %>编号 | 题目名称 | 通过 | 提交 | 通过率 |
---|---|---|---|---|---|
<% 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.ac_num / problem.submit_num * 100) || 0).toFixed(2) %>% |