{% 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 %} {% if submission.is_graded %} {% if submission.result != 'AB' %} {% endif %} {% endif %} {% for case in batch.cases %} {% if not batch.id %} {% endif %} {% if ((prefix_length is none or prefix_length > 0) or (request.user.is_superuser)) %} {% endif %} {% endfor %}
{{_('Overall: ')}} {% 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=submission.points|roundfloat(3), total=submission.problem.points|floatformat(-1)) }} {% endif %} {{submission.long_status}} {{_('Point: ')}} {{ submission.case_points|floatformat(0) }}/{{ submission.case_total|floatformat(0) }} {{_('Time: ')}} {% if submission.result == "TLE" %} --- {% else %} {{ (submission.time * 1000)|floatformat(0) }} ms {% endif %} {{_('Memory: ')}}{{ submission.memory|kbdetailformat }}
{%- if ((prefix_length is none or prefix_length > 0) or (request.user.is_superuser)) -%} {%- 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.long_status }}{% endif -%} {{_('Point')}}: {{ case.points|floatformat(0) }}/{{ case.total|floatformat(0) }} {%- 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 batch.id %}
{% endif %}
{% endfor %} {% 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 %}