% // Sanitize judge results for backward compatibility and clarity if (!judge.result.subtasks) { judge.result.subtasks = [ { case_num: judge.result.case_num, status: judge.result.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]); %>
编号 | 题目名称 | 状态 | 分数 | 总时间 | 内存 | 代码 | 提交者 | 提交时间 | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#<%= judge.id %> | #<%= judge.problem_id %>. <%= judge.problem.title %> | <% if (judge.allowedSeeResult) { %><%= judge.result.status %> | <%= judge.result.score %> | <%= judge.result.total_time %> ms | <%= parseInt(judge.result.max_memory) || 0 %> K | <%= syzoj.config.languages[judge.language].show %> / <%= syzoj.utils.formatSize(judge.codeLength) %> | <% } else { %>隐藏 | 隐藏 | 隐藏 | 隐藏 | 隐藏 | <% } %><%= judge.user.username %><% if (judge.user.nameplate) { %><%- judge.user.nameplate %><% } %> | <%= syzoj.utils.formatDate(judge.submit_time) %> |
<%- judge.code %>
<%- judge.result.compiler_output %>
输入文件
<%= testcase.input %>
<%= testcase.answer %>
<%= testcase.user_out %>
<%= testcase.spj_message %>