{% 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' %}

{{ _('We are waiting for a suitable judge to process your submission...') }}

{% elif submission.status == 'P' %}

{{ _('Your submission is being processed...') }}

{% elif submission.status == 'CE' %}

{{ _('Compilation Error') }}

{{ submission.error|ansi2html }}
{% else %} {% if submission.error %}

{{ _('Compilation Warnings') }}

{{ submission.error|ansi2html }}


{% endif %} {% if is_pretest %}

{{ _('Pretest Execution Results') }}

{% else %}

{{ _('Execution Results') }}

{% endif %}
{% set test_case_id = counter() %} {% for batch in batches %} {% if batch.id %} {{ _('Batch ') }}#{{ test_case_id() }} ({{ _('%(points)s/%(total)s points', points=batch.points|floatformat(0), total=batch.total|floatformat(0)) }})
{% endif %} {% for case in batch.cases %} {% if not batch.id %} {% endif %} {% if case.status != 'AC' and case.output and (prefix_length is none or prefix_length > 0) %} {% if case.extended_feedback %} {% endif %} {% endif %} {% endfor %}
{%- if case.status != 'AC' and case.output and (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 %}({{ case.points|floatformat(0) }}/{{ case.total|floatformat(0) }})
{% if batch.id %}
{% endif %}
{% endfor %} {% if submission.is_graded %}
{% if submission.result != "AB" %} {{ _('Resources:') }} {% if submission.result == "TLE" %} ---, {% else %} {{ submission.time|floatformat(3) }}s, {% endif %} {{ submission.memory|kbdetailformat }}
{% if is_pretest %} {{ _('Final pretest score:') }} {% else %} {{ _('Final score:') }} {% endif %} {{ submission.case_points|floatformat(0) }}/{{ submission.case_total|floatformat(0) }} {% if request.in_contest and submission.contest_or_none %} {% with contest=submission.contest_or_none %} ({{ _('%(points)s/%(total)s points', points=contest.points|roundfloat(3), total=contest.problem.points|floatformat(-1)) }}) {% endwith %} {% else %} ({{ _('%(points)s/%(total)s points', points=submission.points|roundfloat(3), total=submission.problem.points|floatformat(-1)) }}) {% endif %} {% if is_pretest and submission.result == "AC" %}
{{ _('Passing pretests does not guarantee a full score on system tests.') }} {% endif %} {% else %} {{ _('Submission aborted!') }} {% endif %}
{% endif %} {% endif %} {% else %} {% include "submission/internal-error-message.html" %} {% endif %}