这是 2026-10-23 的上一版评测(LiveCodeBench 最新 35 题)。最新的阶梯评测见 首页。
结果
Kimi K3.1 ProKimi
✓
通过
- 官方测试 43/43判题
- 2.3k输出 token(含思考) ↓
- 35 秒延迟 ↓
- —最慢测试的 CPU 时间 ↓
- —峰值内存 ↓
- 3Pylint 问题 ↓
- 6.25Pylint 得分 ↑
- 1圈复杂度 ↓
- 94.0可维护性指数 ↑
- 8有效行
- 0SonarQube 问题 ↓
DeepSeek-V4.1-FlashDS-Flash
✓
通过
- 官方测试 43/43判题
- 1.3k输出 token(含思考) ↓
- 7 秒延迟 ↓
- —最慢测试的 CPU 时间 ↓
- —峰值内存 ↓
- 4Pylint 问题 ↓
- 6.92Pylint 得分 ↑
- 2圈复杂度 ↓
- 61.9可维护性指数 ↑
- 13有效行
- 0SonarQube 问题 ↓
DeepSeek-V4-ProDS-Pro
✓
通过
- 官方测试 43/43判题
- 3.4k输出 token(含思考) ↓
- 25 秒延迟 ↓
- —最慢测试的 CPU 时间 ↓
- —峰值内存 ↓
- 4Pylint 问题 ↓
- 5.00Pylint 得分 ↑
- 1圈复杂度 ↓
- 68.8可维护性指数 ↑
- 8有效行
- 0SonarQube 问题 ↓
↑ 越大越好,↓ 越小越好,有效行只描述代码长短。CPU 时间与内存只统计能区分性能的题(最慢答案扣除进程启动后仍 ≥ 0.1 秒),括号内为相对最快者的倍数(≥ 2 时标出)。静态质量按 arXiv:2610.19167 的口径(见 原理)。判题方法见 原理 › 判题。
代码
Kimi K3.1 Pro · 12 行
import sys from math import isqrt def main(): n = int(sys.stdin.buffer.read().strip()) # Good integers are exactly the disjoint sets: # (2k)^2 = 4k^2 and 2k^2, for positive integers k. answer = isqrt(n // 4) + isqrt(n // 2) print(answer) if __name__ == "__main__": main()
DeepSeek-V4.1-Flash · 17 行
import sys import math def main(): N = int(sys.stdin.readline()) ans = 0 power_of_two = 2 while power_of_two <= N: max_odd_square_base = math.isqrt(N // power_of_two) ans += (max_odd_square_base + 1) // 2 power_of_two *= 2 print(ans) if __name__ == "__main__": main()
DeepSeek-V4-Pro · 10 行
import sys from math import isqrt def main(): N = int(sys.stdin.read().strip()) ans = isqrt(N) // 2 + isqrt(N // 2) print(ans) if __name__ == "__main__": main()