{% import "components/record.html" as record with context %} {% import "components/problem.html" as problem with context %} {% import "components/user.html" as user with context %}
{{ _('ID') }}
{{ pdoc.docId }}
{{ _('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
{% if page_name != 'discussion_node' and page_name != 'discussion_detail' %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
{{ _('Submission') }}
{% if pdoc.psdoc.status %} {{ model.builtin.STATUS_TEXTS[pdoc['psdoc']['status']] }} {% else %} {{ _('(None)') }} {% endif %}
{% endif %} {% endif %}
{{ _('Difficulty') }}
{{ pdoc['difficulty'] or _('(None)') }}
{{ _('Category') }}
{% if pdoc['category'] %} {%- for category in pdoc['category'] -%} {{ category }} {% if loop.index < pdoc['category']|length %} {{ _('problem-subcategory-delim') }} {% endif %} {%- endfor -%} {{ _('page.problem_detail.sidebar.show_category') }} {% else %} {{ _('(None)') }} {% endif %}
{{ _('Tags') }}
{{ problem.render_problem_tags(pdoc, true) }}
{{ _('# Submissions') }}
{{ pdoc.nSubmit }}
{% if page_name != 'discussion_node' and page_name != 'discussion_detail' %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
{{ _('# My Submissions') }}
{{ pdoc['psdoc'].nSubmit|default(0) }}
{% endif %} {% endif %}
{{ _('Accepted') }}
{{ pdoc.nAccept }}
{{ _('Accepted Ratio') }}
{% if pdoc.nSubmit > 0 %}{{ (100 * pdoc.nAccept / pdoc.nSubmit)|round|int }}%{% else %}{{ _('?') }}{% endif %}
{{ _('Uploaded By') }}
{{ user.render_inline(owner_udoc, badge=false) }}