{% if submission.contest_or_none %} {% set prefix_length = submission.contest_or_none.problem.output_prefix_override %} {% else %} {% set prefix_length = None %} {% endif %} {% set is_pretest = submission.is_pretested %} {% if submission.status != 'IE' %} {% if submission.status == 'QU' %}
{{ submission.error|ansi2html }}{% else %} {% if submission.error %}
{{ submission.error|ansi2html }}
{%- if (prefix_length is none or prefix_length > 0) -%} {%- endif -%} {%- if batch.id -%} {{ _('Case') }} #{{ loop.index }}: {%- elif is_pretest -%} {{ _('Pretest') }} #{{ test_case_id() }}: {%- else -%} {{ _('Test case') }} #{{ test_case_id() }}: {%- endif -%} | {%- if case.status == 'SC' %}—{% else %}{{ case.status }}{% endif -%} {%- if case.feedback %} ({{ case.feedback }}){% endif -%} | {%- if case.status != 'SC' -%} {%- if case.status == 'TLE' -%} [>{{ time_limit|floatformat(3) }}s, {%- else -%} [{{ case.time|floatformat(3) }}s, {%- endif -%} {%- endif -%} | {% if case.status != 'SC' %}{{ case.memory|kbdetailformat }}]{% endif %} | {% if not batch.id %}({{ case.points|floatformat(0) }}/{{ case.total|floatformat(0) }}) | {% endif %}