Conflicts:
	contest/views.py
修复冲突,修改了不恰当的函数名
This commit is contained in:
sxw@401
2015-09-17 11:33:55 +08:00
26 changed files with 215 additions and 133 deletions

View File

@@ -54,13 +54,11 @@
</nav>
<!-- nav end -->
<!--browser happy begin -->
<!--[if lt IE 9]>
<div class="alert alert-danger text-center" role="alert">
当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.
</div>
<![endif]-->
<!-- browser happy end -->
<script>
if(navigator.userAgent.indexOf("MSIE") > -1){
location.href = "/static/img/unsupported_browser.html";
}
</script>
<div class="container main">
<div class="row">

View File

@@ -45,7 +45,12 @@
{% for item in result %}
<tr>
<th scope="row">{{ forloop.counter }}</th>
<td>{{ item.username }}</td>
<td>
{{ item.username }}
{% if show_real_name %}
{{ item.real_name }}
{% endif %}
</td>
<td>{{ item.total_ac }} / {{ item.total_submit }}</td>
<td>{% if item.total_time %}{{ item.total_time }}{% else %}--{% endif %}</td>
{% for problem in item.problems %}

View File

@@ -59,6 +59,12 @@
{% endfor %}
</p>
</div>
{% if problem.source %}
<div class="problem-section hide">
<label class="problem-label">来源</label>
<div class="problem-detail">{{ problem.source }}</div>
</div>
{% endif %}
<div>
<label>选择语言</label>
<div>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -21,13 +21,11 @@
<body>
<!--browser happy begin -->
<!--[if lt IE 9]>
<div class="alert alert-danger text-center" role="alert">
当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.
</div>
<![endif]-->
<!-- browser happy end -->
<script>
if(navigator.userAgent.indexOf("MSIE") > -1){
location.href = "/static/img/unsupported_browser.html";
}
</script>
<!-- nav begin -->
<nav class="navbar navbar-masthead navbar-default navbar-static-top">

View File

@@ -22,37 +22,29 @@
<li>System Error: 判题系统发生故障,请等待重判</li>
<li>Waiting: 你的提交正在等待处理</li>
</ul>
<h4>支持的语言</h4>
<ul>
<li>C (GCC 4.8)</li>
<li>C++ (G++ 4.3)</li>
<li>Java (Oracle JDK 1.7)</li>
</ul>
<h4>编译参数</h4>
<ul>
<li>C</li>
<pre>gcc -DONLINE_JUDGE -O2 -w -std=c99 {src_path} -lm -o {exe_path}main</pre></p>
<li>C++</li>
<li>CGCC 4.8</li>
<pre>gcc -DONLINE_JUDGE -O2 -w -std=c99 {src_path} -lm -o {exe_path}main</pre>
<li>C++G++ 4.3</li>
<pre>g++ -DONLINE_JUDGE -O2 -w -std=c++11 {src_path} -lm -o {exe_path}main</pre>
<li>Java</li>
<pre>javac {src_path} -d {exe_path}</pre>
<pre>java -cp {exe_path} Main</pre>
</ul>
<li>JavaOracle JDK 1.7</li>
<pre>
//编译
javac {src_path} -d {exe_path}
//运行
java -cp {exe_path} Main</pre>
</ul>
<h2 class="text-center">常见问题</h2>
<ul>
<li>输入输出</li>
<p>无特殊说明,请使用标准输入输出</p>
<li>C/C++的64位整数类型</li>
<p>请使用long long声明使用cin/cout或 %lld输入输出</p>
<li>判题结果与本地执行结果不一致</li>
<p>是否使用了不同版本的编译器VC和TC并不完全符合C/C++标准)</p>
<p>判题时可能使用了与您测试时不同的测试数据(不仅限于样例中展示的数据)</p>
<li>程序执行时间和占用的内存如何计算</li>
<p>执行时间指CPU时间占用内存按执行过程中内存消耗的峰值计有多组测试数据时以最大的时间和内存消耗为准</p>
<li>无特殊说明,请使用标准输入输出</li>
<li>Java 代码需使用 Main 作为主类名。C/C++代码使用<code>int main()</code>,并且需要<code>return 0;</code></li>
<li>C/C++ 的64位整数类型,请使用 <code>long long</code> 声明,使用 <code>cin/cout</code><code>%lld</code> 输入输出。
使用<code>__int64</code>会导致编译错误。</li>
<li>程序执行时间指CPU时间占用内存按执行过程中内存消耗的峰值计有多组测试数据时以最大的时间和内存消耗为准</li>
</ul>
</div>