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

{% if rdoc %} {{ rdoc.score }} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) and not tdoc %}
{% endif %} #{{ String.fromCharCode(65+tdoc.pids.indexOf(pdoc.docId)) if tdoc else pdoc.pid|default(pdoc.docId) }}. {{ pdoc.title }}

{% if tdoc %}
{% for pid in tdoc.pids -%} {% set status = tsdoc.detail[pid].status %} {% set pass = status == STATUS.STATUS_ACCEPTED %} {% set fail = status and not pass %} {{ String.fromCharCode(65+loop.index0) }} {% if status %}{% endif %} {%- endfor %}
{% endif %}
    {% if not tdoc %} {{ _('ID') }}: {{ pdoc.docId }} {% endif %} {{ _('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 lib.difficulty(pdoc.nSubmit, pdoc.nAccept) or _('(None)') }} {{ _('Uploaded By') }}: {{ user.render_inline(udoc, badge=false) }} {% endif %} {% if pdoc.tag.length %} {{ _('Tags') + '>' }} {%- for tag in pdoc.tag -%} {{ tag }} {%- endfor -%} {% endif %}

{{ pdoc.title }}

{% if pdoc.content|contentLang|length > 1 %}
{% endif %} {% include "partials/problem_description.html" %}
{% set owner_udoc = udoc %} {% include "partials/problem_sidebar.html" %}
{% endblock %}