dev标签未闭合,修复,整理格式
This commit is contained in:
@@ -2,107 +2,97 @@
|
|||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="container main">
|
<div class="container main">
|
||||||
<ul class="nav nav-tabs nav-tabs-google">
|
<ul class="nav nav-tabs nav-tabs-google">
|
||||||
<li role="presentation" class="active">
|
<li role="presentation" class="active">
|
||||||
<a href="/contest/{{ contest_problem.contest.id }}/problem/{{ contest_problem.id }}/">题目</a></li>
|
<a href="/contest/{{ contest_problem.contest.id }}/problem/{{ contest_problem.id }}/">题目</a></li>
|
||||||
<li role="presentation"><a
|
<li role="presentation"><a
|
||||||
href="/contest/{{ contest_problem.contest.id }}/problem/{{ contest_problem.id }}/submissions/">我的提交</a>
|
href="/contest/{{ contest_problem.contest.id }}/problem/{{ contest_problem.id }}/submissions/">我的提交</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2 class="text-center">{{ contest_problem.title }}</h2>
|
<h2 class="text-center">{{ contest_problem.title }}</h2>
|
||||||
|
|
||||||
<p class="text-muted text-center">发布时间 : {{ contest_problem.create_time }}
|
<p class="text-muted text-center">发布时间 : {{ contest_problem.create_time }}
|
||||||
时间限制 : {{ contest_problem.time_limit }}ms
|
时间限制 : {{ contest_problem.time_limit }}ms
|
||||||
内存限制 : {{ contest_problem.memory_limit }}M
|
内存限制 : {{ contest_problem.memory_limit }}M
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div>
|
|
||||||
<div class="problem-section">
|
|
||||||
<label class="problem-label">描述</label>
|
|
||||||
|
|
||||||
<div class="problem-detail">{{ contest_problem.description|safe }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="problem-section">
|
|
||||||
<label class="problem-label">输入</label>
|
|
||||||
|
|
||||||
<p class="problem-detail">{{ contest_problem.input_description }}</p>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<div class="problem-section">
|
<div class="problem-section">
|
||||||
<label class="problem-label">输出</label>
|
<label class="problem-label">描述</label>
|
||||||
|
|
||||||
<p class="problem-detail">{{ contest_problem.output_description }}</p>
|
<div class="problem-detail">{{ contest_problem.description|safe }}</div>
|
||||||
</div>
|
</div>
|
||||||
{% for item in samples %}
|
<div class="problem-section">
|
||||||
<div class="problem-section">
|
<label class="problem-label">输入</label>
|
||||||
<label class="problem-label">样例输入{{ forloop.counter }}</label>
|
|
||||||
<a href="javascript:void(0)" class="copy-sample" data-clipboard-text="{{ item.input }}">复制</a>
|
|
||||||
<pre>
|
|
||||||
{{ item.input }}</pre>
|
|
||||||
|
|
||||||
</div>
|
<p class="problem-detail">{{ contest_problem.input_description }}</p>
|
||||||
<div class="problem-section">
|
|
||||||
|
|
||||||
<label class="problem-label">样例输出{{ forloop.counter }}</label>
|
|
||||||
<pre>
|
|
||||||
{{ item.output }}</pre>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% if problem.hint %}
|
|
||||||
<div class="problem-section hide">
|
|
||||||
<label class="problem-label">提示</label>
|
|
||||||
|
|
||||||
<p class="problem-detail">{{ contest_problem.hint|safe }}</p>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if contest_problem.hint %}
|
|
||||||
<div class="problem-section hide">
|
|
||||||
<label class="problem-label">提示</label>
|
|
||||||
|
|
||||||
<div class="problem-detail">{{ contest_problem.hint|safe }}</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% ifequal contest.status 0 %}
|
|
||||||
<div>
|
<div>
|
||||||
<label>选择语言</label>
|
|
||||||
|
|
||||||
<div>
|
<div class="problem-section">
|
||||||
<label class="radio-inline">
|
<label class="problem-label">输出</label>
|
||||||
<input type="radio" name="language" value="1" checked> C (GCC 4.8)
|
|
||||||
</label>
|
<p class="problem-detail">{{ contest_problem.output_description }}</p>
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="language" value="2"> C++ (G++ 4.3)
|
|
||||||
</label>
|
|
||||||
<label class="radio-inline">
|
|
||||||
<input type="radio" name="language" value="3"> Java (Oracle JDK 1.7)
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
{% for item in samples %}
|
||||||
|
<div class="problem-section">
|
||||||
|
<label class="problem-label">样例输入{{ forloop.counter }}</label>
|
||||||
|
<a href="javascript:void(0)" class="copy-sample"
|
||||||
|
data-clipboard-text="{{ item.input }}">复制</a>
|
||||||
|
<pre>{{ item.input }}</pre>
|
||||||
|
</div>
|
||||||
|
<div class="problem-section">
|
||||||
|
<label class="problem-label">样例输出{{ forloop.counter }}</label>
|
||||||
|
<pre>{{ item.output }}</pre>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{% if problem.hint %}
|
||||||
|
<div class="problem-section hide">
|
||||||
|
<label class="problem-label">提示</label>
|
||||||
|
<p class="problem-detail">{{ contest_problem.hint|safe }}</p>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if contest_problem.hint %}
|
||||||
|
<div class="problem-section hide">
|
||||||
|
<label class="problem-label">提示</label>
|
||||||
|
<div class="problem-detail">{{ contest_problem.hint|safe }}</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% ifequal contest.status 0 %}
|
||||||
|
<div>
|
||||||
|
<label>选择语言</label>
|
||||||
|
<div>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="language" value="1" checked> C (GCC 4.8)
|
||||||
|
</label>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="language" value="2"> C++ (G++ 4.3)
|
||||||
|
</label>
|
||||||
|
<label class="radio-inline">
|
||||||
|
<input type="radio" name="language" value="3"> Java (Oracle JDK 1.7)
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="code-field">
|
||||||
|
<label class="problem-label">提交代码</label>
|
||||||
|
<textarea id="code-editor"></textarea>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div id="submit-code">
|
||||||
|
<button type="button" class="btn btn-primary" id="submit-code-button">
|
||||||
|
提交代码
|
||||||
|
</button>
|
||||||
|
<img src="/static/img/loading.gif" id="loading-gif">
|
||||||
|
</div>
|
||||||
|
{% endifequal %}
|
||||||
|
{% if show_warning %}
|
||||||
|
<div class="alert alert-success" role="alert">{{ warning }}</div>
|
||||||
|
{% endif %}
|
||||||
|
<div id="result">
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="code-field">
|
|
||||||
<label class="problem-label">提交代码</label>
|
|
||||||
<textarea id="code-editor"></textarea>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div id="submit-code">
|
|
||||||
<button type="button" class="btn btn-primary" id="submit-code-button">
|
|
||||||
提交代码
|
|
||||||
</button>
|
|
||||||
<img src="/static/img/loading.gif" id="loading-gif">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endifequal %}
|
|
||||||
|
|
||||||
{% if show_warning %}
|
|
||||||
<div class="alert alert-success" role="alert">{{ warning }}</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div id="result">
|
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user