{% extends 'base_main.html' %} {% block scripts %} function change(num) { inp = document.getElementById('soltype'); if (inp.value == num) return; document.getElementById('button' + inp.value).classList.remove('btn-dark'); document.getElementById('button' + inp.value).classList.add('btn-light'); document.getElementById('button' + inp.value).focused = false; document.getElementById('input' + inp.value).hidden = true; inp.value = 1 - inp.value; document.getElementById('button' + inp.value).classList.remove('btn-light'); document.getElementById('button' + inp.value).classList.add('btn-dark'); document.getElementById('button' + inp.value).focused = false; document.getElementById('input' + inp.value).hidden = false; document.getElementById('chosen').hidden = true; document.getElementById('file-upload').value = null; document.getElementById('input0').value = ""; } function doPoll() { jQuery.get('/solutions_table?task_id={{ task.id }}', function(data) { jQuery.get('/task_runtime?task_id={{ task.id }}', function(data1) { if (data == 'done' && data1 == 'done') return if (data != 'done') { document.getElementById('solutions').innerHTML = data; } if (data1 != 'done') { document.getElementById('runtime').innerHTML = data1; } setTimeout(function() {doPoll()}, 2000); }) }) jQuery.get('/solutions_table?id={{ task.id }}&render=true', function(data) { document.getElementById('solutions').innerHTML = data; }) jQuery.get('/task_runtime?id={{ task.id }}&render=true', function(data) { document.getElementById('runtime').innerHTML = data; }) } {% endblock %} {% block onload %}doPoll(){% endblock %} {% block main %}
{% if task.legend %}

Легенда

{% autoescape off %} {{ task.legend }} {% endautoescape %}
{% endif %} {% if task.input_format %}

Формат входных данных

{% autoescape off %} {{ task.input_format }} {% endautoescape %}
{% endif %} {% if task.output_format %}

Формат выходных данных

{% autoescape off %} {{ task.output_format }} {% endautoescape %}
{% endif %} {% if task.specifications %}

Примечания

{% autoescape off %} {{ task.specifications }} {% endautoescape %}
{% endif %} {% if task.samples %}

Примеры

{% for sample in task.samples %}
Пример {{ sample.num }}
Входные данные Выходные данные

{{ sample.input }}
{{ sample.output }}

{% endfor %} {% endif %}

Отправить решение

{% csrf_token %}


Решения

id Время отправки Язык Результат
{% endblock %}