增加实际运行时间的显示和说明

This commit is contained in:
virusdefender 2016-04-23 20:31:38 +08:00
parent a210689a07
commit ac0284879f
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61
2 changed files with 10 additions and 8 deletions

View File

@ -7,7 +7,7 @@ define("testCaseUploader", ["avalon", "uploader", "bsAlert", "jquery"], function
'请将所有测试用例打包在一个文件中上传,' +
'所有文件要在压缩包的根目录,' +
'且输入输出文件名要以从1开始连续数字标识要对应例如' +
'<br>1.in 1.out 2.in 2.out(普通题目)或者1.in 2.in 3.in(Special Judge) </small> ' +
'<br>1.in 1.out 2.in 2.out(普通题目)或者1.in 2.in 3.in(Special Judge) 请尽可能的合并测试用例在一个文件中</small> ' +
'<p>上传进度<span ms-text="uploadProgress"></span>%</p> ' +
'<table class="table table-striped" ms-visible="uploaded"> ' +
'<tr> <td>编号</td> <td>输入文件名</td> <td>输出文件名</td> </tr> ' +

View File

@ -68,19 +68,21 @@
<table class="table">
<thead>
<tr>
<th>测试用例</th>
<th>CPU时间</th>
<th>内存</th>
<th>结果</th>
<th>测试用例</th>
<th><a href="https://github.com/QingdaoU/OnlineJudge/wiki/%E5%AE%9E%E9%99%85%E8%BF%90%E8%A1%8C%E6%97%B6%E9%97%B4%E5%92%8CCPU%E6%97%B6%E9%97%B4">实际运行时间</a></th>
<th>CPU时间</th>
<th>内存</th>
<th>结果</th>
</tr>
</thead>
<tbody>
{% for item in info %}
<tr>
<th scope="row">{{ item.test_case }}</th>
<td>{{ item.cpu_time }} ms</td>
<td>{{ item.memory }} Byte</td>
<td class="{{ item.result|translate_result_class }}">{{ item.result|translate_result }}</td>
<td>{{ item.real_time }} ms</td>
<td>{{ item.cpu_time }} ms</td>
<td>{{ item.memory }} Byte</td>
<td class="{{ item.result|translate_result_class }}">{{ item.result|translate_result }}</td>
</tr>
{% endfor %}
</tbody>