这是 2026-10-23 的上一版评测(LiveCodeBench 最新 35 题)。最新的阶梯评测见 首页。
题目
LiveCodeBench release_v6 [1] 中发布日期最新的 100 题,比赛日期 2025-02-15 至 2025-04-06。LiveCodeBench 持续从 AtCoder、LeetCode 等平台收集比赛题,并按比赛日期标注。
| 难度 | AtCoder | LeetCode | 合计 |
|---|---|---|---|
| 简单 | 14 | 9 | 23 |
| 中等 | 15 | 15 | 30 |
| 困难 | 37 | 10 | 47 |
| 合计 | 66 | 34 | 100 |
| 来源 | 题数 | 形式 |
|---|---|---|
| AtCoder ABC 393–400 | 49 | 完整程序,标准输入输出 |
| AtCoder ARC 193–196 | 17 | 完整程序,标准输入输出 |
| LeetCode 周赛 / 双周赛 | 34 | 补全给定的 Python 函数 |
示例
AtCoder ABC 400 C 题 · 中等
2^a b^2
能写成 2ᵃ·b²(a、b 为正整数)的数称为好数;求 1 到 N 内好数的个数,N ≤ 10¹⁸。
AtCoder ARC 195 D 题 · 困难
Swap and Erase
可以交换相邻元素,或删除开头一段全部相等的前缀;求删空序列的最少操作数。
LeetCode 周赛 441 · 困难
Count Beautiful Numbers
各位数字之积能被各位数字之和整除的正整数称为美丽数;求 [l, r] 内美丽数的个数。
全部 100 题
| 题号 | 题目 | 难度 |
|---|---|---|
| arc196_d | Roadway | 困难 |
| arc196_c | Strongly Connected | 困难 |
| arc196_b | Torus Loop | 困难 |
| arc196_a | Adjacent Delete | 困难 |
| 3777 | Maximum Product of Subsequences with an Alternating Sum Equal to K | 困难 |
| 3773 | Minimum Pair Removal to Sort Array I | 简单 |
| abc400_g | Patisserie ABC 3 | 困难 |
| abc400_e | Ringo's Favorite Numbers 3 | 困难 |
| abc400_d | Takahashi the Wall Breaker | 中等 |
| abc400_c | 2^a b^2 | 中等 |
| abc400_b | Sum of Geometric Series | 简单 |
| abc400_a | ABC400 Party | 简单 |
| 3832 | Minimum Cost to Reach Every Position | 简单 |
| 3793 | Longest Palindrome After Substring Concatenation I | 中等 |
| 3717 | Minimum Operations to Make Elements Within K Subarrays Equal | 困难 |
| 3811 | Reverse Degree of a String | 简单 |
| 3805 | Maximize Active Section with Trade I | 中等 |
| 3765 | Minimum Cost to Divide Array into Subarrays | 困难 |
| abc399_f | Range Power Sum | 困难 |
| abc399_e | Replace | 困难 |
| abc399_d | Switch Seats | 中等 |
| abc399_c | Make it Forest | 中等 |
| abc399_b | Ranking with Ties | 简单 |
| abc399_a | Hamming Distance | 简单 |
| arc195_e | Random Tree Distance | 困难 |
| arc195_d | Swap and Erase | 困难 |
| arc195_c | Hamiltonian Pieces | 困难 |
| arc195_b | Uniform Sum | 困难 |
| arc195_a | Twice Subsequence | 中等 |
| 3817 | Maximum Containers On a Ship | 简单 |
| 3809 | Properties Graph | 中等 |
| 3794 | Find the Minimum Amount of Time to Brew Potions | 中等 |
| 3744 | Minimum Operations to Make Array Elements Zero | 困难 |
| abc398_g | Not Only Tree Game | 困难 |
| abc398_f | ABCBA | 困难 |
| abc398_d | Bonfire | 困难 |
| abc398_c | Uniqueness | 中等 |
| abc398_b | Full House 3 | 中等 |
| abc398_a | Doors in the Center | 简单 |
| 3801 | Count Beautiful Numbers | 困难 |
| 3795 | Zero Array Transformation Iv | 中等 |
| 3788 | Maximum Unique Subarray Sum After Deletion | 简单 |
| 3750 | Closest Equal Element Queries | 中等 |
| 3799 | Unique 3 Digit Even Numbers | 简单 |
| 3784 | Longest Common Prefix of K Strings After Removal | 困难 |
| abc397_g | Maximize Distance | 困难 |
| abc397_f | Variety Split Hard | 困难 |
| abc397_e | Path Decomposition of a Tree | 困难 |
| abc397_d | Cubes | 困难 |
| abc397_c | Variety Split Easy | 中等 |
| abc397_b | Ticket Gate Log | 中等 |
| abc397_a | Thermometer | 简单 |
| arc194_e | Swap 0^X and 1^Y | 困难 |
| arc194_d | Reverse Brackets | 困难 |
| arc194_c | Cost to Flip | 困难 |
| arc194_b | Minimum Cost Sort | 困难 |
| arc194_a | Operations on a Stack | 中等 |
| 3791 | Fruits into Baskets Iii | 中等 |
| 3789 | Maximize Subarrays After Removing One Conflicting Pair | 困难 |
| 3759 | Choose K Elements with Maximum Sum | 中等 |
| abc396_g | Flip Row or Col | 困难 |
| abc396_f | Rotated Inversions | 困难 |
| abc396_e | Min of Restricted Sum | 困难 |
| abc396_d | Minimum XOR Path | 中等 |
| abc396_c | Buy Balls | 中等 |
| abc396_b | Card Pile | 简单 |
| abc396_a | Triple Four | 简单 |
| 3786 | Longest Palindromic Subsequence After At Most K Operations | 中等 |
| 3770 | Lexicographically Smallest Generated String | 困难 |
| 3722 | Sum of K Subarrays with Length At Least M | 中等 |
| 3705 | Find the Largest Almost Missing Integer | 简单 |
| 3785 | Find the Number of Copy Arrays | 中等 |
| 3783 | Permutations Iv | 困难 |
| 3778 | Transform Array By Parity | 简单 |
| 3776 | Find Minimum Cost to Remove Array Elements | 中等 |
| abc395_f | Smooth Occlusion | 困难 |
| abc395_e | Flip Edge | 困难 |
| abc395_c | Shortest Duplicate Subarray | 中等 |
| abc395_b | Make Target | 简单 |
| abc395_a | Strictly Increasing? | 简单 |
| arc193_d | Magnets | 困难 |
| arc193_b | Broken Wheel | 困难 |
| arc193_a | Complement Interval Graph | 困难 |
| 3781 | Maximize the Distance Between Points On a Square | 困难 |
| 3768 | Check If Digits Are Equal in String After Operations I | 简单 |
| 3764 | Maximum Sum with At Most K Elements | 中等 |
| abc394_g | Dense Buildings | 困难 |
| abc394_f | Alkane | 困难 |
| abc394_e | Palindromic Shortest Path | 困难 |
| abc394_d | Colorful Bracket Sequence | 中等 |
| abc394_c | Debug | 中等 |
| abc394_b | cat | 简单 |
| abc394_a | 22222 | 简单 |
| 3779 | Eat Pizzas | 中等 |
| 3771 | Select K Disjoint Special Substrings | 中等 |
| abc393_f | Prefix LIS Query | 困难 |
| abc393_e | GCD of Subset | 困难 |
| abc393_d | Swap to Gather | 困难 |
| abc393_b | A..B..C | 简单 |
| abc393_a | Poisonous Oyster | 简单 |
点击一行查看题意概述与原题链接;评测过的题还有三个模型的结果与代码。