From c3bdbf85438d274c6d52b64324af2646042c7b04 Mon Sep 17 00:00:00 2001 From: tc-imba Date: Mon, 1 Jul 2019 16:49:15 +0800 Subject: [PATCH] feature: add some kindly hints about the identical answers --- vj4/ui/templates/record_detail_case.html | 40 +++++++++++++++++++++--- vj4/ui/templates/wiki_help.html | 10 ++++++ 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/vj4/ui/templates/record_detail_case.html b/vj4/ui/templates/record_detail_case.html index 7b3c9c40..e25f3db8 100644 --- a/vj4/ui/templates/record_detail_case.html +++ b/vj4/ui/templates/record_detail_case.html @@ -8,26 +8,27 @@ #}
-
+

Notes

- This function is in alpha test. Please help improve it in the issues + This function is in beta test. Please help improve it in the issues here.
-
+

Stderr +

@@ -35,8 +36,37 @@

+ {% if rcdoc['stdout'] == rcdoc['answer'] and rcdoc['status'] != vj4.constant.record.STATUS_ACCEPTED %} +
+
+
+

+ Hints +

+
+
+

Your answer is identical to the JOJ answer in the first several lines.

+ {% if rcdoc['status'] == vj4.constant.record.STATUS_WRONG_ANSWER %} +

However, you still get + {{ vj4.constant.record.STATUS_TEXTS[rcdoc['status']] }} + because the complete output may be longer and there might be errors in the future lines.

+ {% else %} +

However, the problem is + + {{ vj4.constant.record.STATUS_TEXTS[rcdoc['status']] }}. + {% if rcdoc['execute_status'] != 0 %} + And the exit code of your program is {{ rcdoc['execute_status'] }}, which should be 0. + {% endif %} +

+ {% endif %} +

Please double check your code to solve this problem and try again.

+
+
+
+ {% endif %}
-
+

@@ -49,7 +79,7 @@

-
+

{{ _('Judge Status') }}

有“成绩取消”字样则说明管理员手动标记此记录为取消,可能违反了服务条款,比如代码被发现与其他用户的代码十分相似。
+
+
+

Stderr

+
+
+ {{ _('no_translation_warn')|safe }} +

stderr shows the debug message outputed to the standard error file (STDERR_FILENO: 2)

+

For example, in C++, it is std::cerr

+
+

{{ _('Compile Error') }}