diff --git a/libs/judger.js b/libs/judger.js index e77f836..08d5ee9 100644 --- a/libs/judger.js +++ b/libs/judger.js @@ -158,6 +158,7 @@ async function connect() { } const result = msgPack.decode(payload); + console.log(result); winston.verbose('Received report for task ' + result.taskId); const judge_state = await JudgeState.findOne({ diff --git a/views/submission_contest.ejs b/views/submission_contest.ejs new file mode 100644 index 0000000..79fcf77 --- /dev/null +++ b/views/submission_contest.ejs @@ -0,0 +1,442 @@ +<% this.title = '提交记录 #' + info.submissionId %> +<% include util %> +<% include header %> + + + + + + + + 编号 + 题目 + 状态 + 分数 + 总时间 + 单项时间 + 内存 + 代码 / 答案文件 + 提交者 + 提交时间 + 重新评测 + 分享 + + + + + + + <%= cid %> + <%= pid %> + <%= sid %> + + <% if (formattedCode !== null) { %> + + + 显示原始代码 + + + 格式化代码 + + + <% } %> + + + + + + + + + + + 子任务 #{{ $index + 1 }} + + + + + + 得分:{{ Math.trunc(subtask.score) }} + + + + + + + + + + + 测试点 #{{ $caseIndex + 1 }} + + + + + + + 得分:{{ Math.trunc(curCase.result.scoringRate * 100) }} + + + 用时:{{ curCase.result.time }} ms + + + 内存:{{ curCase.result.memory }} KiB + + + + + + + + + + + + + + + + + + + + + + + + + +<% include submissions_item %> + + + + + + +<% include footer %>