{% extends "layout/basic.html" %} {% block content %}

{% if rdoc %} {{ rdoc.score }} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) and not tdoc %}
{% endif %} #{{ pdoc.pid|default(pdoc.docId) }}. {{ pdoc.title }}

    {{ _('ID') }}: {{ pdoc.docId }} {{ _('problem_type.' + pdoc.config.type).format(pdoc.config.subType) }} {% if pdoc.config.type != 'objective' and pdoc.config.type != 'submit_answer' %} {{ pdoc.config.timeMax if pdoc.config.timeMax == pdoc.config.timeMin else pdoc.config.timeMin+'~'+pdoc.config.timeMax }}ms {{ pdoc.config.memoryMax if pdoc.config.memoryMax == pdoc.config.memoryMin else pdoc.config.memoryMin+'~'+pdoc.config.memoryMax }}MiB {% endif %} {% if not tdoc %} {{ _('Tried') }}: {{ pdoc.nSubmit }} {{ _('Accepted') }}: {{ pdoc.nAccept if ((not tdoc) or showAccept) else '?' }} {{ _('Difficulty') }}: {{ pdoc['difficulty'] or _('(None)') }} {% endif %} {{ _('Uploaded By') }}: {{ user.render_inline(udoc, badge=false) }} {% if pdoc.tag.length %} {{ _('Tags') + '>' }} {%- for tag in pdoc.tag -%} {{ tag }} {%- endfor -%} {% endif %}

{{ pdoc.title }}

{% if not pdoc.data.length %}

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

{% endif %} {% if typeof(pdoc.config) == 'string' %}

{{ pdoc.config }}

{% 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 or handler.session.viewLang, pdoc.html)|safe }}
{% set owner_udoc = udoc %} {% include "partials/problem_sidebar.html" %}
{% endblock %}