{% extends "layout/basic.html" %} {% import "components/contest.html" as contest with context %} {% import "components/record.html" as record with context %} {% import "components/problem.html" as problem with context %} {% block content %} {{ set(UiContext, 'tdoc', tdoc) }} {{ set(UiContext, 'tsdoc', tsdoc) }} {% set hasCorrection = correction and Object.keys(correction).length %}

{{ _('Problems') }}

{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {% if showScore %} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% if hasCorrection %} {% else %} {% endif %} {% endif %} {% if showScore %} {% endif %} {%- for pid in tdoc.pids -%} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% if psdict[pid] and psdict[pid].rid %} {% set rdoc = rdict[psdict[pid].rid] %} {% if model.contest.canShowSelfRecord.call(handler, tdoc) %} {% set displayScore = ((tdoc.score[pid]|default(100)) * (psdict[pid].score|default(0)) / 100) if showScore else (psdict[pid].penaltyScore|default(psdict[pid].score)) %} {{ record.render_status_td(rdoc, displayScore=displayScore) }} {% else %} {% endif %} {% if not hasCorrection %} {% endif %} {% else %} {% if not hasCorrection %} {% endif %} {% endif %} {% if hasCorrection %} {% if correction[pid] %} {{ record.render_status_td(rdict[correction[pid].rid], class="col--correction") }} {% else %} {% endif %} {% endif %} {% endif %} {% if showScore %} {% endif %} {%- endfor -%}
{{ _('Status') }}{{ _('Correction') }}{{ _('Last Submit At') }}{{ _('Score') }}{{ _('Problem') }}
{{ _('Submitted') }}{{ datetimeSpan(rdoc._id)|safe }}{{ _('No Submissions') }}--{{ tdoc.score[pid]|default(100) }} {{ problem.render_problem_title(pdict[pid], tdoc, alphabetic=true) }} {% if pdict[pid].config.type != 'objective' and pdict[pid].config.type != 'submit_answer' %} {{ pdict[pid].config.timeMax if pdict[pid].config.timeMax == pdict[pid].config.timeMin else pdict[pid].config.timeMin+'~'+pdict[pid].config.timeMax }}ms {{ pdict[pid].config.memoryMax if pdict[pid].config.memoryMax == pdict[pid].config.memoryMin else pdict[pid].config.memoryMin+'~'+pdict[pid].config.memoryMax }}MiB {% endif %} {% if pdict[pid].config.type != 'objective' %} {{ _('Submit') }} {% endif %}

{{ _('Submissions') }}

{% if not canViewRecord %} {{ nothing.render('According to the contest rules, you cannot view your submission details at current.', compact=true) }} {% elif not rdocs.length %} {{ nothing.render('Oh, there is no submission!', compact=true) }} {% else %} {%- for rdoc in rdocs -%} {% set udoc = udict[rdoc['uid']] %} {% set pdoc = pdict[rdoc['pid']] %} {% include 'record_main_tr.html' %} {%- endfor -%}
{{ _('Status') }} {{ _('Problem') }} {{ _('Submit By') }} {{ _('Time') }} {{ _('Memory') }} {{ _('Language') }} {{ _('Submit At') }}
{% endif %}

{{ _('Contest Clarifications') }}

{% if not tcdocs.length %} {{ nothing.render('Oh, there is no clarification!', compact=true) }} {% else %}
    {% for doc in tcdocs %}
  • {{_('Subject') }}: {{ contest.render_clarification_subject(tdoc,pdict,doc.subject) }} | {% if doc.owner == 0 %}{{ _('Jury') }}{% else %}{{ user.render_inline(udict[doc.owner], badge=false) }}{% endif %} @ {{ datetimeSpan(doc._id)|safe }}
    {{ doc['content']|markdown|safe }}
      {%- for rdoc in doc['reply'] -%}
    •         
      {{ _('Jury') }} @ {{ datetimeSpan(rdoc['_id'])|safe }}
      {{ rdoc['content']|markdown|safe }}
    • {%- endfor -%}
  • {% endfor %}
{% endif %}
{% if tsdoc.attend %}

{{ _('Send Clarification Request') }}

{% endif %}
{% if tdoc.privateFiles.length %}

{{_('Materials')}}

    {% for file in tdoc.privateFiles %} {% endfor %}
{% endif %} {% set owner_udoc = udict[tdoc.owner] %} {% include "partials/contest_sidebar.html" %}
{% endblock %}