% include util %> <% // Sanitize judge results for backward compatibility and clarity if (!judge.result.subtasks) { judge.result.subtasks = [ { case_num: judge.result.case_num, status: judge.status, score: judge.result.score } ]; for (let i = 0; i < judge.result.case_num; ++i) { judge.result.subtasks[0][i] = judge.result[i]; } } let runningFound = false; for (let s of judge.result.subtasks) { s.pending = (s.status === 'Waiting' || s.status.startsWith('Running')); for (let i = 0; i < s.case_num; ++i) if (!s[i]) { s[i] = { pending: true, status: runningFound ? 'Waiting' : 'Running' }; if (!runningFound) s.isActiveSubtask = true; runningFound = true; } } %> <% let problemUrl; if (typeof contest !== 'undefined') problemUrl = syzoj.utils.makeUrl(['contest', contest.id, judge.problem_id]); else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]); %>
编号 | 题目名称 | 状态 | <% if ((typeof contest === 'undefined' || !contest) || !((!user || !user.is_admin) && !contest.ended && contest.type === 'acm') && !hideScore) { %>分数 | <% } %> <% if (judge.problem.type !== 'submit-answer') { %> <% if (!hideScore) { %>总时间 | 内存 | <% } %>代码 | <% } else { %>文件大小 | <% } %>提交者 | 提交时间 | |
---|---|---|---|---|---|---|---|---|---|---|
#<%= judge.id %> | <%= (typeof contest !== 'undefined' && contest) ? this.alpha(judge.problem_id) : ('#' + judge.problem_id) %>. <%= judge.problem.title %> | <%= judge.status %> | <% if ((typeof contest === 'undefined' || !contest) || !((!user || !user.is_admin) && !contest.ended && contest.type === 'acm') && !hideScore) { %><%= judge.result.score %> | <% } %> <% if (judge.problem.type !== 'submit-answer') { %> <% if (!hideScore) { %><%= judge.result.total_time %> ms | <%= parseInt(judge.result.max_memory) || 0 %> K | <% } %> <% if (judge.allowedSeeCode) { %><%= syzoj.config.languages[judge.language].show %> / <%= syzoj.utils.formatSize(judge.codeLength) %> | <% } else { %><%= syzoj.config.languages[judge.language].show %> / 隐藏 %> | <% } %> <% } else { %><%= syzoj.utils.formatSize(judge.max_memory) %> | <% } %><%= judge.user.username %><% if (judge.user.nameplate) { %><%- judge.user.nameplate %><% } %> | <%= syzoj.utils.formatDate(judge.submit_time) %> |
<%- judge.code %>
<%- syzoj.utils.ansiToHTML(judge.result.compiler_output) %>
<%= judge.result.message %>
<%- syzoj.utils.ansiToHTML(judge.result.spj_compiler_output) %>
输入文件<% if (testcase.input_file_name) { %>(<%= testcase.input_file_name %>)<% } %>
<%= testcase.input %>
<%= testcase.answer %>
<%= testcase.user_out %>
<%= testcase.spj_message %>
<%= testcase.user_err %>
<%= testcase.runner_message %>