{% 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 %} {% for batch in batches %} {% if batch.id not in frozen_subtasks %}
{% if batch.id %} {{ _('Batch ') }}#{{ batch.id }} ({{batch.points|floatformat}} / {{batch.total|floatformat}}): {% endif %} {% for case in batch.cases %} {% if case.status == 'AC' %} {% elif case.status != 'SC' %} {% endif %} {% endfor %}
{% else %}
{% if batch.id %} {{ _('Batch ') }}#{{ batch.id }} (??? / {{batch.total|floatformat}}) {% endif %}
{% endif %} {% endfor %}
{% if submission.is_graded and submission.result != 'AB' and not frozen_subtasks %} {% endif %} {% for batch in batches %} {% if batch.id not in frozen_subtasks %} {% if batch.id %} {% set batch_AC = (batch.points == batch.total) %} {% endif %} {% for case in batch.cases %} {% if can_see_testcases %} {% endif %} {% endfor %} {% endif %} {% 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 ') }}#{{ batch.id }} {% 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')}}: {{ case.points|floatformat }}/{{ case.total|floatformat }} {%- 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 %}