{% set no_path_section = true %} {% extends "layout/basic.html" %} {% block content %}

{% if rdoc %} {{ rdoc.score }} {% endif %} #{{ pdoc.pid|default(pdoc.docId) }}. {{ pdoc.title }}

    {{ _('Type') }}: {{ pdoc.config.type }} {% if pdoc.config.type != 'subjective' and pdoc.config.type != 'submit_answer' %} {{ _('Time') }}: {{ pdoc.config.timeMax if pdoc.config.timeMax == pdoc.config.timeMin else pdoc.config.timeMin+'~'+pdoc.config.timeMax }}ms {{ _('Memory') }}: {{ pdoc.config.memoryMax if pdoc.config.memoryMax == pdoc.config.memoryMin else pdoc.config.memoryMin+'~'+pdoc.config.memoryMax }}MiB {% endif %} {{ _('Submitted') }}: {{ pdoc.nSubmit }} {{ _('Accepted') }}: {{ pdoc.nAccept }} {{ _('Accepted Ratio') }}: {% if pdoc.nSubmit > 0 %}{{ (100 * pdoc.nAccept / pdoc.nSubmit)|round|int }}%{% else %}{{ _('?') }}{% endif %} {{ _('Difficulty') }}: {{ pdoc['difficulty'] or _('(None)') }} {{ _('Uploaded By') }}: {{ user.render_inline(udoc, badge=false) }} {% if pdoc.tag.length %} {{ _('Show Tags') }} {%- for tag in pdoc.tag -%} {{ tag }} {%- endfor -%} {% endif %}

{{ pdoc.title }}

{% if not pdoc.data.length %}

{{ _('No testdata at current.') }}

{% endif %} {% if tdoc and tdoc.docType == model.document.TYPE_CONTEST and model.contest.isDone(tdoc) %}

{{ _('You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.') }}

{% endif %} {{ pdoc.content|content(handler.user.viewLang, pdoc.html)|safe }}
{% set owner_udoc = udoc %} {% include "partials/problem_sidebar.html" %}
{% endblock %}