{% import "components/problem.html" as problem with context %} {% extends "layout/basic.html" %} {% block content %} {% include "course_ui_style.html" %} {% set subsecUrl = url('course_subsec_detail', cid=cdoc.docId, csid=csdoc.docId, ssid=ssdoc._id) %}

{{ exam.title }}

{% if exam.content %} {{ exam.content|markdown|safe }} {% endif %} {% if not canStart %}
当前考试已停用,不能开始或重新参赛;已有考试记录和成绩仍会保留。
{% endif %}
题目数
{{ exam.pids.length }}
比赛赛制
{{ exam.ruleLabel }}
考试时长
{{ exam.duration }} 分钟
{% if session %}

开始:{{ startedAtText }} {% if deadlineAtText %}
截止:{{ deadlineAtText }}{% endif %} {% if endedAtText %}
结束:{{ endedAtText }}{% endif %}

{% if not session.finished and session.deadlineAt %}

剩余时间:{{ remainingText }}

{% endif %} {% endif %} {% if hideLiveResult %}

OI 赛制赛时不显示成绩,比赛结束后公布。

{% elif result %}

{% if result.rule == 'acm' %} 当前结果:通过 {{ result.solved }} / {{ result.total }} 题,罚时 {{ result.penalty }} 分钟。 {% else %} 当前成绩:{{ result.score }} / {{ result.maxScore }}。 {% endif %}

{% endif %}
{% if not session and canStart %}
{% elif session and session.finished %} 考试已结束(每人限一次) {% elif session %} 比赛进行中 {% else %} 当前考试已停用 {% endif %} {% if scoreboardAvailable %} 比赛排名 {% else %} 排名赛后开放 {% endif %} 返回小节

考试题目

{% for item in pitems %} {% endfor %}
# 题目 赛时反馈 记录
{{ item.index }} {% if session and not session.finished and session.attemptId %} {{ problem.render_problem_title(item.pdoc, show_tags=false, invalid=true) }} {% else %} {{ problem.render_problem_title(item.pdoc, show_tags=false) }} {% endif %} {% if hideLiveResult %} 赛后公布 {% elif exam.rule == 'acm' %} {% if item.best and item.best.accepted %} 已通过 {% if item.best.penalty %}
罚时 {{ item.best.penalty }} 分钟{% endif %} {% else %} 未通过 {% endif %} {% elif item.best %} {{ item.best.score }} / {{ exam.scorePerProblem }} {% else %} 0 / {{ exam.scorePerProblem }} {% endif %}
{% if item.best and item.best.rid %} 查看提交 {% else %} - {% endif %}
{% endblock %}