{% set max_score = teams[0].combined_score if teams and tab == 'combined' else (teams[0].quiz_score if teams and tab == 'mcq' else (teams[0].solved_flags if teams else 1)) %} {% if teams | length >= 3 %}
2
{{ teams[1].name }} {% if tab != 'mcq' %}CTF {{ teams[1].solved_flags }}/{{ total_flags }}{% endif %}{% if tab == 'combined' %} · {% endif %}{% if tab != 'ctf' %}MCQ {{ teams[1].quiz_correct | default(0) }}{% endif %}
{% if tab == 'combined' %}综合分{% elif tab == 'ctf' %}Flags{% else %}MCQ{% endif %} {% if tab == 'combined' %}{{ teams[1].combined_score | default(0) }}{% elif tab == 'ctf' %}{{ teams[1].solved_flags }}{% else %}{{ teams[1].quiz_correct | default(0) }}{% endif %}
{% set pct = ((teams[1].combined_score if tab == 'combined' else (teams[1].quiz_score if tab == 'mcq' else teams[1].solved_flags)) / max_score * 100) | int if max_score else 0 %}
{{ teams[0].name }} {% if tab != 'mcq' %}CTF {{ teams[0].solved_flags }}/{{ total_flags }}{% endif %}{% if tab == 'combined' %} · {% endif %}{% if tab != 'ctf' %}MCQ {{ teams[0].quiz_correct | default(0) }}{% endif %}
{% if tab == 'combined' %}综合分{% elif tab == 'ctf' %}Flags{% else %}MCQ{% endif %} {% if tab == 'combined' %}{{ teams[0].combined_score | default(0) }}{% elif tab == 'ctf' %}{{ teams[0].solved_flags }}{% else %}{{ teams[0].quiz_correct | default(0) }}{% endif %}
3
{{ teams[2].name }} {% if tab != 'mcq' %}CTF {{ teams[2].solved_flags }}/{{ total_flags }}{% endif %}{% if tab == 'combined' %} · {% endif %}{% if tab != 'ctf' %}MCQ {{ teams[2].quiz_correct | default(0) }}{% endif %}
{% if tab == 'combined' %}综合分{% elif tab == 'ctf' %}Flags{% else %}MCQ{% endif %} {% if tab == 'combined' %}{{ teams[2].combined_score | default(0) }}{% elif tab == 'ctf' %}{{ teams[2].solved_flags }}{% else %}{{ teams[2].quiz_correct | default(0) }}{% endif %}
{% set pct = ((teams[2].combined_score if tab == 'combined' else (teams[2].quiz_score if tab == 'mcq' else teams[2].solved_flags)) / max_score * 100) | int if max_score else 0 %}
{% endif %} {% set table_teams = teams[3:] if teams | length >= 3 else teams %} {% if table_teams %}
{% if tab != 'mcq' %} {% endif %} {% if tab != 'ctf' %} {% endif %} {% if tab == 'combined' %} {% endif %} {% set offset = 3 if teams | length >= 3 else 0 %} {% for team in table_teams %} {% if tab != 'mcq' %} {% endif %} {% if tab != 'ctf' %} {% endif %} {% if tab == 'combined' %} {% endif %} {% endfor %}
# 队伍CTF FlagsMCQ 正确综合分
{{ loop.index + offset }}
{{ team.name[:2] | upper }}
{{ team.name }}
{{ team.solved_flags }}/{{ total_flags }}
{{ team.quiz_correct | default(0) }} {{ team.combined_score | default(0) }}
{% elif not teams %}

暂无队伍数据

{% endif %}