{% 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 %}
{% if submission.is_graded and submission.result != 'AB' %} {% endif %} {% for batch in batches %} {% if batch.id %} {% set batch_AC = (batch.points == batch.total) %} {% endif %} {% for case in batch.cases %} {% if can_see_testcases %} {% endif %} {% endfor %} {% endfor %}
{{_('Overall: ')}} {% if request.in_contest_mode and submission.contest_or_none %} {% with contest=submission.contest_or_none %} {{ _('%(points)s/%(total)s', points=contest.points|roundfloat(3), total=contest.problem.points|floatformat(-1)) }} {% endwith %} {% else %} {{ _('%(points)s/%(total)s', points=submission.points|roundfloat(3), total=submission.problem.points|floatformat(-1)) }} {% endif %} {{submission.long_status}} {{_('Point: ')}} {{ submission.case_points|floatformat(1) }}/{{ submission.case_total|floatformat(0) }} {{_('Time: ')}} {% if submission.result == "TLE" %} --- {% else %} {{ (submission.time * 1000)|floatformat(0) }} ms {% endif %} {{_('Memory: ')}}{{ submission.memory|kbdetailformat }}
{{ _('Batch ') }}#{{ loop.index }} {% if batch_AC %} {% else %} {% endif %} {{_('Point')}}: {{ _('%(points)s/%(total)s', points=batch.points|floatformat(1), total=batch.total|floatformat(0)) }}
{%- if can_see_testcases -%} {%- endif -%} {%- if batch.id -%} {{ _('Case') }} #{{ loop.index }}: {%- elif is_pretest -%} {{ _('Pretest') }} #{{ loop.index }}: {%- else -%} {{ _('Test case') }} #{{ loop.index }}: {%- endif -%} {%- if case.status == 'SC' %}—{% else %}{{ case.long_status }}{% endif -%} {{_('Point')}}: {% if not batch.id %} {{ case.points|floatformat }}/{{ case.total|floatformat(0) }} {% else %} - {% endif %} {%- if case.status != 'SC' -%} {%- if case.status == 'TLE' -%} {{_('Time')}}: >{{ (time_limit * 1000)|floatformat(0) }} ms {%- else -%} {{_('Time')}}: {{ (case.time * 1000)|floatformat(0) }} ms {%- endif -%} {%- endif -%} {% if case.status != 'SC' %}{{_('Memory')}}: {{ case.memory|kbdetailformat }}{% endif %}
{% if submission.is_graded %}
{% if submission.result != "AB" %} {% 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 %}