CSES 中文題庫


CSES Problem Set 全部題目的中文題庫:題目頁有中文題敘與範例測試,程式到 CSES 提交。最前面先列 APCS 難度的題目依技巧分組,後面是全部題目照 CSES 的分區排列。

CSES Problem Set · Antti Laaksonen · CC BY-NC-SA 4.0
登入並綁定 CSES 帳號後,可以在這裡同步解題進度。

APCS 難度42 題

沒超出 APCS 中高級與高級考點的題目,依技巧分組;分不進某個技巧的放「其他」。

題目 等級 同型考古題 原題
中高級 Upper-intermediate16 題
遞迴與枚舉Recursion and enumeration
CSES 1622Creating Strings 中高級Upper-intermediate CSES
CSES 1623Apple Division 中高級Upper-intermediate CSES
CSES 1624Chessboard and Queens 中高級Upper-intermediate CSES
CSES 2165Tower of Hanoi 中高級Upper-intermediate CSES
CSES 2205Gray Code 中高級Upper-intermediate CSES
CSES 1095Exponentiation 中高級Upper-intermediate CSES
二分搜尋Binary search
CSES 1620Factory Machine 中高級Upper-intermediate 基地台APCS 2017-03 CSES
CSES 1640Sum of Two Values 中高級Upper-intermediate CSES
堆疊與佇列Stacks and queues
CSES 1645Nearest Smaller Values 中高級Upper-intermediate 磁軌移動序列APCS 2023-06 CSES
CSES 2162Josephus Problem I 中高級Upper-intermediate 定時 K 彈APCS 2016-10 CSES
排序與 setSorting and set
CSES 1621Distinct Numbers 中高級Upper-intermediate CSES
CSES 1091Concert Tickets 中高級Upper-intermediate 切割費用APCS 2021-01 CSES
CSES 1619Restaurant Customers 中高級Upper-intermediate 線段覆蓋長度APCS 2016-03 CSES
網格上的搜尋Search on a grid
CSES 1192Counting Rooms 中高級Upper-intermediate CSES
CSES 1193Labyrinth 中高級Upper-intermediate CSES
CSES 1194Monsters 中高級Upper-intermediate CSES
高級 Advanced26 題
貪心Greedy
CSES 1629Movie Festival 高級Advanced CSES
CSES 1630Tasks and Deadlines 高級Advanced 物品堆疊APCS 2017-10 CSES
CSES 1074Stick Lengths 高級Advanced CSES
CSES 1090Ferris Wheel 高級Advanced CSES
CSES 2183Missing Coin Sum 高級Advanced CSES
動態規劃Dynamic programming
CSES 1633Dice Combinations 高級Advanced CSES
CSES 1634Minimizing Coins 高級Advanced CSES
CSES 1635Coin Combinations I 高級Advanced CSES
CSES 1636Coin Combinations II 高級Advanced CSES
CSES 1637Removing Digits 高級Advanced CSES
CSES 1638Grid Paths I 高級Advanced CSES
CSES 1158Book Shop 高級Advanced 置物櫃分配APCS 2018-10 CSES
CSES 1639Edit Distance 高級Advanced CSES
CSES 1745Money Sums 高級Advanced CSES
CSES 1744Rectangle Cutting 高級Advanced CSES
CSES 1643Maximum Subarray Sum 高級Advanced CSES
CSES 1145Increasing Subsequence 高級Advanced CSES
樹Trees
CSES 1674Subordinates 高級Advanced 樹狀圖分析APCS 2017-10 CSES
CSES 1131Tree Diameter 高級Advanced 血緣關係APCS 2016-03 CSES
CSES 1132Tree Distances I 高級Advanced CSES
圖Graphs
CSES 1666Building Roads 高級Advanced CSES
CSES 1667Message Route 高級Advanced CSES
CSES 1668Building Teams 高級Advanced CSES
CSES 1669Round Trip 高級Advanced CSES
CSES 1679Course Schedule 高級Advanced CSES
CSES 1680Longest Flight Route 高級Advanced CSES

全部題目照 CSES 的分區與順序

CSES 全部 400 題,400 題已有中文題敘,其餘會陸續補上;沒有中文題敘的題目頁會連到 CSES 原題。

題目 原題
入門題Introductory Problems24 題 · 中文 24
CSES 1068Weird Algorithm CSES
CSES 1083Missing Number CSES
CSES 1069Repetitions CSES
CSES 1094Increasing Array CSES
CSES 1070Permutations CSES
CSES 1071Number Spiral CSES
CSES 1072Two Knights CSES
CSES 1092Two Sets CSES
CSES 1617Bit Strings CSES
CSES 1618Trailing Zeros CSES
CSES 1754Coin Piles CSES
CSES 1755Palindrome Reorder CSES
CSES 2205Gray Code CSES
CSES 2165Tower of Hanoi CSES
CSES 1622Creating Strings CSES
CSES 1623Apple Division CSES
CSES 1624Chessboard and Queens CSES
CSES 3399Raab Game I CSES
CSES 3419Mex Grid Construction CSES
CSES 3217Knight Moves Grid CSES
CSES 3311Grid Coloring I CSES
CSES 2431Digit Queries CSES
CSES 1743String Reorder CSES
CSES 1625Grid Paths CSES
排序與搜尋Sorting and Searching35 題 · 中文 35
CSES 1621Distinct Numbers CSES
CSES 1084Apartments CSES
CSES 1090Ferris Wheel CSES
CSES 1091Concert Tickets CSES
CSES 1619Restaurant Customers CSES
CSES 1629Movie Festival CSES
CSES 1640Sum of Two Values CSES
CSES 1643Maximum Subarray Sum CSES
CSES 1074Stick Lengths CSES
CSES 2183Missing Coin Sum CSES
CSES 2216Collecting Numbers CSES
CSES 2217Collecting Numbers II CSES
CSES 1141Playlist CSES
CSES 1073Towers CSES
CSES 1163Traffic Lights CSES
CSES 3420Distinct Values Subarrays CSES
CSES 3421Distinct Values Subsequences CSES
CSES 2162Josephus Problem I CSES
CSES 2163Josephus Problem II CSES
CSES 2168Nested Ranges Check CSES
CSES 2169Nested Ranges Count CSES
CSES 1164Room Allocation CSES
CSES 1620Factory Machine CSES
CSES 1630Tasks and Deadlines CSES
CSES 1631Reading Books CSES
CSES 1641Sum of Three Values CSES
CSES 1642Sum of Four Values CSES
CSES 1645Nearest Smaller Values CSES
CSES 1660Subarray Sums I CSES
CSES 1661Subarray Sums II CSES
CSES 1662Subarray Divisibility CSES
CSES 2428Distinct Values Subarrays II CSES
CSES 1085Array Division CSES
CSES 1632Movie Festival II CSES
CSES 1644Maximum Subarray Sum II CSES
動態規劃Dynamic Programming23 題 · 中文 23
CSES 1633Dice Combinations CSES
CSES 1634Minimizing Coins CSES
CSES 1635Coin Combinations I CSES
CSES 1636Coin Combinations II CSES
CSES 1637Removing Digits CSES
CSES 1638Grid Paths I CSES
CSES 1158Book Shop CSES
CSES 1746Array Description CSES
CSES 2413Counting Towers CSES
CSES 1639Edit Distance CSES
CSES 3403Longest Common Subsequence CSES
CSES 1744Rectangle Cutting CSES
CSES 3359Minimal Grid Path CSES
CSES 1745Money Sums CSES
CSES 1097Removal Game CSES
CSES 1093Two Sets II CSES
CSES 3314Mountain Range CSES
CSES 1145Increasing Subsequence CSES
CSES 1140Projects CSES
CSES 1653Elevator Rides CSES
CSES 2181Counting Tilings CSES
CSES 2220Counting Numbers CSES
CSES 1748Increasing Subsequence II CSES
圖論演算法Graph Algorithms36 題 · 中文 36
CSES 1192Counting Rooms CSES
CSES 1193Labyrinth CSES
CSES 1666Building Roads CSES
CSES 1667Message Route CSES
CSES 1668Building Teams CSES
CSES 1669Round Trip CSES
CSES 1194Monsters CSES
CSES 1671Shortest Routes I CSES
CSES 1672Shortest Routes II CSES
CSES 1673High Score CSES
CSES 1195Flight Discount CSES
CSES 1197Cycle Finding CSES
CSES 1196Flight Routes CSES
CSES 1678Round Trip II CSES
CSES 1679Course Schedule CSES
CSES 1680Longest Flight Route CSES
CSES 1681Game Routes CSES
CSES 1202Investigation CSES
CSES 1750Planets Queries I CSES
CSES 1160Planets Queries II CSES
CSES 1751Planets Cycles CSES
CSES 1675Road Reparation CSES
CSES 1676Road Construction CSES
CSES 1682Flight Routes Check CSES
CSES 1683Planets and Kingdoms CSES
CSES 1684Giant Pizza CSES
CSES 1686Coin Collector CSES
CSES 1691Mail Delivery CSES
CSES 1692De Bruijn Sequence CSES
CSES 1693Teleporters Path CSES
CSES 1690Hamiltonian Flights CSES
CSES 1689Knight's Tour CSES
CSES 1694Download Speed CSES
CSES 1695Police Chase CSES
CSES 1696School Dance CSES
CSES 1711Distinct Routes CSES
區間查詢Range Queries25 題 · 中文 25
CSES 1646Static Range Sum Queries CSES
CSES 1647Static Range Minimum Queries CSES
CSES 1648Dynamic Range Sum Queries CSES
CSES 1649Dynamic Range Minimum Queries CSES
CSES 1650Range Xor Queries CSES
CSES 1651Range Update Queries CSES
CSES 1652Forest Queries CSES
CSES 1143Hotel Queries CSES
CSES 1749List Removals CSES
CSES 1144Salary Queries CSES
CSES 2166Prefix Sum Queries CSES
CSES 2206Pizzeria Queries CSES
CSES 3304Visible Buildings Queries CSES
CSES 3163Range Interval Queries CSES
CSES 1190Subarray Sum Queries CSES
CSES 3226Subarray Sum Queries II CSES
CSES 1734Distinct Values Queries CSES
CSES 3356Distinct Values Queries II CSES
CSES 2416Increasing Array Queries CSES
CSES 1664Movie Festival Queries CSES
CSES 1739Forest Queries II CSES
CSES 1735Range Updates and Sums CSES
CSES 1736Polynomial Queries CSES
CSES 1737Range Queries and Copies CSES
CSES 2184Missing Coin Sum Queries CSES
樹演算法Tree Algorithms16 題 · 中文 16
CSES 1674Subordinates CSES
CSES 1130Tree Matching CSES
CSES 1131Tree Diameter CSES
CSES 1132Tree Distances I CSES
CSES 1133Tree Distances II CSES
CSES 1687Company Queries I CSES
CSES 1688Company Queries II CSES
CSES 1135Distance Queries CSES
CSES 1136Counting Paths CSES
CSES 1137Subtree Queries CSES
CSES 1138Path Queries CSES
CSES 2134Path Queries II CSES
CSES 1139Distinct Colors CSES
CSES 2079Finding a Centroid CSES
CSES 2080Fixed-Length Paths I CSES
CSES 2081Fixed-Length Paths II CSES
數學Mathematics37 題 · 中文 37
CSES 2164Josephus Queries CSES
CSES 1095Exponentiation CSES
CSES 1712Exponentiation II CSES
CSES 1713Counting Divisors CSES
CSES 1081Common Divisors CSES
CSES 1082Sum of Divisors CSES
CSES 2182Divisor Analysis CSES
CSES 2185Prime Multiples CSES
CSES 2417Counting Coprime Pairs CSES
CSES 3396Next Prime CSES
CSES 1079Binomial Coefficients CSES
CSES 1715Creating Strings II CSES
CSES 1716Distributing Apples CSES
CSES 1717Christmas Party CSES
CSES 3397Permutation Order CSES
CSES 3398Permutation Rounds CSES
CSES 2064Bracket Sequences I CSES
CSES 2187Bracket Sequences II CSES
CSES 2209Counting Necklaces CSES
CSES 2210Counting Grids CSES
CSES 1722Fibonacci Numbers CSES
CSES 1096Throwing Dice CSES
CSES 1723Graph Paths I CSES
CSES 1724Graph Paths II CSES
CSES 3154System of Linear Equations CSES
CSES 3355Sum of Four Squares CSES
CSES 3406Triangle Number Sums CSES
CSES 1725Dice Probability CSES
CSES 1726Moving Robots CSES
CSES 1727Candy Lottery CSES
CSES 1728Inversion Probability CSES
CSES 1729Stick Game CSES
CSES 1730Nim Game I CSES
CSES 1098Nim Game II CSES
CSES 1099Stair Game CSES
CSES 2207Grundy's Game CSES
CSES 2208Another Game CSES
字串演算法String Algorithms21 題 · 中文 21
CSES 1731Word Combinations CSES
CSES 1753String Matching CSES
CSES 1732Finding Borders CSES
CSES 1733Finding Periods CSES
CSES 1110Minimal Rotation CSES
CSES 1111Longest Palindrome CSES
CSES 3138All Palindromes CSES
CSES 1112Required Substring CSES
CSES 2420Palindrome Queries CSES
CSES 2102Finding Patterns CSES
CSES 2103Counting Patterns CSES
CSES 2104Pattern Positions CSES
CSES 2105Distinct Substrings CSES
CSES 1149Distinct Subsequences CSES
CSES 2106Repeating Substring CSES
CSES 2107String Functions CSES
CSES 3225Inverse Suffix Array CSES
CSES 1113String Transform CSES
CSES 2108Substring Order I CSES
CSES 2109Substring Order II CSES
CSES 2110Substring Distribution CSES
幾何Geometry16 題 · 中文 16
CSES 2189Point Location Test CSES
CSES 2190Line Segment Intersection CSES
CSES 2191Polygon Area CSES
CSES 2192Point in Polygon CSES
CSES 2193Polygon Lattice Points CSES
CSES 2194Minimum Euclidean Distance CSES
CSES 2195Convex Hull CSES
CSES 3410Maximum Manhattan Distances CSES
CSES 3411All Manhattan Distances CSES
CSES 1740Intersection Points CSES
CSES 3427Line Segments Trace I CSES
CSES 3428Line Segments Trace II CSES
CSES 3429Lines and Queries I CSES
CSES 3430Lines and Queries II CSES
CSES 1741Area of Rectangles CSES
CSES 1742Robot Path CSES
進階技巧Advanced Techniques25 題 · 中文 25
CSES 1628Meet in the Middle CSES
CSES 2136Hamming Distance CSES
CSES 3360Corner Subgrid Check CSES
CSES 2137Corner Subgrid Count CSES
CSES 2138Reachable Nodes CSES
CSES 2143Reachability Queries CSES
CSES 2072Cut and Paste CSES
CSES 2073Substring Reversals CSES
CSES 2074Reversals and Sums CSES
CSES 2076Necessary Roads CSES
CSES 2077Necessary Cities CSES
CSES 2078Eulerian Subgraphs CSES
CSES 2084Monster Game I CSES
CSES 2085Monster Game II CSES
CSES 2086Subarray Squares CSES
CSES 2087Houses and Schools CSES
CSES 2088Knuth Division CSES
CSES 2111Apples and Bananas CSES
CSES 2112One Bit Positions CSES
CSES 2113Signal Processing CSES
CSES 2101New Roads Queries CSES
CSES 2133Dynamic Connectivity CSES
CSES 2121Parcel Delivery CSES
CSES 2129Task Assignment CSES
CSES 2130Distinct Routes II CSES
滑動視窗Sliding Window Problems11 題 · 中文 11
CSES 3220Sliding Window Sum CSES
CSES 3221Sliding Window Minimum CSES
CSES 3426Sliding Window Xor CSES
CSES 3405Sliding Window Or CSES
CSES 3222Sliding Window Distinct Values CSES
CSES 3224Sliding Window Mode CSES
CSES 3219Sliding Window Mex CSES
CSES 1076Sliding Window Median CSES
CSES 1077Sliding Window Cost CSES
CSES 3223Sliding Window Inversions CSES
CSES 3227Sliding Window Advertisement CSES
互動題Interactive Problems6 題 · 中文 6
CSES 3112Hidden Integer CSES
CSES 3139Hidden Permutation CSES
CSES 3305K-th Highest Score CSES
CSES 3228Permuted Binary Strings CSES
CSES 3273Colored Chairs CSES
CSES 3140Inversion Sorting CSES
位元運算Bitwise Operations11 題 · 中文 11
CSES 1146Counting Bits CSES
CSES 1655Maximum Xor Subarray CSES
CSES 3191Maximum Xor Subset CSES
CSES 3211Number of Subset Xors CSES
CSES 3192K Subset Xors CSES
CSES 3233All Subarray Xors CSES
CSES 2419Xor Pyramid Peak CSES
CSES 3194Xor Pyramid Diagonal CSES
CSES 3195Xor Pyramid Row CSES
CSES 1654SOS Bit Problem CSES
CSES 3141And Subset Count CSES
構造題Construction Problems8 題 · 中文 8
CSES 2214Inverse Inversions CSES
CSES 2215Monotone Subsequences CSES
CSES 3422Third Permutation CSES
CSES 3423Permutation Prime Sums CSES
CSES 1697Chess Tournament CSES
CSES 3424Distinct Sums Grid CSES
CSES 2423Filling Trominos CSES
CSES 2418Grid Path Construction CSES
進階圖論Advanced Graph Problems28 題 · 中文 28
CSES 3303Nearest Shops CSES
CSES 1134Prüfer Code CSES
CSES 1702Tree Traversals CSES
CSES 1757Course Schedule II CSES
CSES 1756Acyclic Graph Edges CSES
CSES 2177Strongly Connected Edges CSES
CSES 2179Even Outdegree Edges CSES
CSES 1707Graph Girth CSES
CSES 3357Fixed Length Walk Queries CSES
CSES 3111Transfer Speeds Sum CSES
CSES 3407MST Edge Check CSES
CSES 3408MST Edge Set Check CSES
CSES 3409MST Edge Cost CSES
CSES 1677Network Breakdown CSES
CSES 3114Tree Coin Collecting I CSES
CSES 3149Tree Coin Collecting II CSES
CSES 1700Tree Isomorphism I CSES
CSES 1701Tree Isomorphism II CSES
CSES 1699Flight Route Requests CSES
CSES 1703Critical Cities CSES
CSES 1203Visiting Cities CSES
CSES 3308Graph Coloring CSES
CSES 3158Bus Companies CSES
CSES 3358Split into Two Paths CSES
CSES 1704Network Renovation CSES
CSES 1705Forbidden Cities CSES
CSES 1752Creating Offices CSES
CSES 1685New Flight Routes CSES
計數問題Counting Problems18 題 · 中文 18
CSES 3413Filled Subgrid Count I CSES
CSES 3414Filled Subgrid Count II CSES
CSES 3415All Letter Subgrid Count I CSES
CSES 3416All Letter Subgrid Count II CSES
CSES 3417Border Subgrid Count I CSES
CSES 3418Border Subgrid Count II CSES
CSES 3400Raab Game II CSES
CSES 1080Empty String CSES
CSES 2229Permutation Inversions CSES
CSES 2176Counting Bishops CSES
CSES 2228Counting Sequences CSES
CSES 1078Grid Paths II CSES
CSES 1075Counting Permutations CSES
CSES 2429Grid Completion CSES
CSES 2421Counting Reorders CSES
CSES 3232Tournament Graph Distribution CSES
CSES 3157Collecting Numbers Distribution CSES
CSES 2415Functional Graph Distribution CSES
附加題 IAdditional Problems I30 題 · 中文 30
CSES 1087Shortest Subsequence CSES
CSES 3150Distinct Values Sum CSES
CSES 3190Distinct Values Splits CSES
CSES 1670Swap Game CSES
CSES 3175Beautiful Permutation II CSES
CSES 2422Multiplication Table CSES
CSES 3151Bubble Sort Rounds I CSES
CSES 3152Bubble Sort Rounds II CSES
CSES 3306Nearest Campsites I CSES
CSES 3307Nearest Campsites II CSES
CSES 1142Advertisement CSES
CSES 2186Special Substrings CSES
CSES 3169Counting LCM Arrays CSES
CSES 3193Square Subsets CSES
CSES 3294Subarray Sum Constraints CSES
CSES 3213Water Containers Moves CSES
CSES 3214Water Containers Queries CSES
CSES 2425Stack Weights CSES
CSES 3301Maximum Average Subarrays CSES
CSES 3302Subsets with Fixed Average CSES
CSES 3361Two Array Average CSES
CSES 1747Pyramid Array CSES
CSES 3404Permutation Subsequence CSES
CSES 1188Bit Inversions CSES
CSES 1086Writing Numbers CSES
CSES 2427Letter Pair Move Game CSES
CSES 1147Maximum Building I CSES
CSES 1162Sorting Methods CSES
CSES 1191Cyclic Array CSES
CSES 2414List of Sums CSES
附加題 IIAdditional Problems II30 題 · 中文 30
CSES 3215Bouncing Ball Steps CSES
CSES 3216Bouncing Ball Cycle CSES
CSES 3218Knight Moves Queries CSES
CSES 3108K Subset Sums I CSES
CSES 3109K Subset Sums II CSES
CSES 2132Increasing Array II CSES
CSES 1189Food Division CSES
CSES 1698Swap Round Sorting CSES
CSES 2430Binary Subsequences CSES
CSES 1706School Excursion CSES
CSES 1709Coin Grid CSES
CSES 3312Grid Coloring II CSES
CSES 2426Programmers and Artists CSES
CSES 2174Removing Digits II CSES
CSES 2180Coin Arrangement CSES
CSES 3159Replace with Difference CSES
CSES 2432Grid Puzzle I CSES
CSES 2131Grid Puzzle II CSES
CSES 2115Bit Substrings CSES
CSES 2075Reversal Sorting CSES
CSES 1159Book Shop II CSES
CSES 3161GCD Subsets CSES
CSES 3402Minimum Cost Pairs CSES
CSES 3425Same Sum Subsets CSES
CSES 1157Mex Grid Queries CSES
CSES 1148Maximum Building II CSES
CSES 1161Stick Divisions CSES
CSES 3401Stick Difference CSES
CSES 1665Coding Company CSES
CSES 2402Two Stacks Sorting CSES