diff --git a/web/reinfo.php b/web/reinfo.php index 249223e..898443e 100644 --- a/web/reinfo.php +++ b/web/reinfo.php @@ -109,7 +109,6 @@ $view_reinfo_dedup_count = 0; // 折叠掉的测试点数 $verdict_color_class = "blue"; // semantic ui color: green/red/orange/yellow/grey $result_icon = "info circle"; $verdict_tip = ""; -$verdict_hints = array(); if($ok){ @@ -143,75 +142,39 @@ if($ok){ default: $verdict_color_class = "blue"; $result_icon = "info circle"; } - // 友好提示 + // 友好提示:仅保留标题性文字,具体修复建议交给 AI 点评 switch ($result_code) { case 4: // AC $verdict_tip = "本次提交通过了所有测试点"; - $verdict_hints[] = "注意时间/内存是否接近限制,考虑是否有更优的算法"; - $verdict_hints[] = "可以继续挑战更高难度或查看其他人的标程"; break; case 5: // PE $verdict_tip = "输出与预期基本一致但格式不符(Presentation Error)"; - $verdict_hints[] = "对照样例:每行末尾是否多/少换行"; - $verdict_hints[] = "检查空格、大小写、标点符号"; - $verdict_hints[] = "PE 通常是细微的格式问题,请逐字符对比"; break; case 6: // WA $verdict_tip = "输出与预期不符(Wrong Answer)"; - $verdict_hints[] = "对照样例手动模拟程序执行过程"; - $verdict_hints[] = "检查边界条件:n=0、n=1、极值、空输入"; - $verdict_hints[] = "注意 long long 溢出、int 范围"; break; case 7: // TLE $verdict_tip = $MSG_HINT_TLE; - $verdict_hints[] = "检查是否有死循环(循环变量未更新)"; - $verdict_hints[] = "优化算法复杂度(如 O(n²) → O(n log n))"; - $verdict_hints[] = "递归层数过深?改为迭代或加深栈"; break; case 8: // MLE $verdict_tip = $MSG_HINT_MLE; - $verdict_hints[] = "大数组开在函数内(栈)?改为全局或 new"; - $verdict_hints[] = "Java: 减小内存使用或调整 JVM 参数"; - $verdict_hints[] = "递归太深未释放,考虑显式清理"; break; case 9: // OLE $verdict_tip = $MSG_HINT_OLE; - $verdict_hints[] = "是否有死循环输出"; - $verdict_hints[] = "调试用的 print/cout 是否忘记删除"; break; case 10: // RE $verdict_tip = "程序运行中发生错误(Runtime Error)"; - $verdict_hints[] = "数组下标是否越界(i @@ -155,65 +142,22 @@ KB ms + - -
-
- - -
-
- - -
- - - - - + +
+ +
- -
-
- - - - - - - - - (无) - -
-
- -

当前判题结果没有原始错误信息(如 TLE/MLE 通常不会写 runtimeinfo)。

- -
- -
-
- +

@@ -347,6 +291,38 @@ + +
+
+ + + + + + + + + (无) + +
+
+ +

当前判题结果没有原始错误信息(如 TLE/MLE 通常不会写 runtimeinfo)。

+ +
+ +
+
+
@@ -372,122 +348,6 @@
- - - + + 14); +?> + 0 && $is_pending): ?> + + +