Codeforces problemset search & solutions
Exclude tags.

Review the problem statement from Codeforces (link will open a new tab). When you've matched your problem, go to the solutions.

Search on plain tags, ratings, names, and problem text. Example: brute force or binary search

< 1 2 3 ... 6 7 8

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
17371 Max and Mod constructive algorithms math Statement A Teza Round 1 (Codeforces Round 1015, Div. 1 + Div. 2) {2084} PROGRAMMING 750.0 141155
13466 Serval and The Formula bitmasks constructive algorithms greedy Statement C Codeforces Round 1011 (Div. 2) {2085} PROGRAMMING 1250.0 Codeforces Round #1011 (Div. 2) Editorial
3119 Serval and Modulo brute force constructive algorithms math number theory Statement E Codeforces Round 1011 (Div. 2) {2085} PROGRAMMING 2500.0 Codeforces Round #1011 (Div. 2) Editorial
23380 Serval and String Theory constructive algorithms implementation Statement A Codeforces Round 1011 (Div. 2) {2085} PROGRAMMING 500.0 Codeforces Round #1011 (Div. 2) Editorial
17011 Serval and Final MEX constructive algorithms implementation Statement B Codeforces Round 1011 (Div. 2) {2085} PROGRAMMING 1250.0 Codeforces Round #1011 (Div. 2) Editorial
142 Online Palindrome brute force constructive algorithms interactive Statement F Educational Codeforces Round 177 (Rated for Div. 2) {2086} PROGRAMMING Educational Codeforces Round 177 Editorial
186 Conditional Operators constructive algorithms Statement D Codeforces Round 1012 (Div. 1) {2089} PROGRAMMING 2500.0 Codeforces Round 1012 (Div.1, Div. 2, based on THUPC 2025 — Finals) Editorial
7136 Simple Permutation constructive algorithms number theory Statement A Codeforces Round 1012 (Div. 1) {2089} PROGRAMMING 750.0 Codeforces Round 1012 (Div.1, Div. 2, based on THUPC 2025 — Finals) Editorial
1492 Gleb and Boating brute force constructive algorithms data structures dp graphs greedy math shortest paths Statement G Codeforces Round 1013 (Div. 3) {2091} PROGRAMMING Codeforces Round 1013 (Div. 3) Editorial
28625 Combination Lock constructive algorithms greedy Statement C Codeforces Round 1013 (Div. 3) {2091} PROGRAMMING Codeforces Round 1013 (Div. 3) Editorial
6827 Mishkin Energizer brute force constructive algorithms greedy implementation strings Statement D Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 1750.0 Codeforces Round #1014 (Div. 2) Editorial
428 Andryusha and CCB brute force constructive algorithms greedy math number theory strings Statement F Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 3000.0 Codeforces Round #1014 (Div. 2) Editorial
3798 She knows... combinatorics constructive algorithms graphs math Statement E Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 2250.0 Codeforces Round #1014 (Div. 2) Editorial
22477 Asuna and the Mosquitoes constructive algorithms greedy math Statement C Codeforces Round 1014 (Div. 2) {2092} PROGRAMMING 1250.0 Codeforces Round #1014 (Div. 2) Editorial
32923 Bobritto Bandito brute force constructive algorithms Statement B Codeforces Round 1017 (Div. 4) {2094} PROGRAMMING Codeforces Round 1017 (Div. 4) Editorial
11363 Trulimero Trulicina constructive algorithms Statement F Codeforces Round 1017 (Div. 4) {2094} PROGRAMMING Codeforces Round 1017 (Div. 4) Editorial
20461 Wonderful Sticks constructive algorithms greedy Statement A Neowise Labs Contest 1 (Codeforces Round 1018, Div. 1 + Div. 2) {2096} PROGRAMMING 500.0 Neowise Labs Contest 1 (Codeforces Round 1018, Div. 1 + Div. 2) Editorial
1011 Bermuda Triangle chinese remainder theorem constructive algorithms geometry math number theory Statement C Codeforces Round 1021 (Div. 1) {2097} PROGRAMMING 1500.0 142316
13366 Mex in the Grid constructive algorithms implementation Statement A Codeforces Round 1024 (Div. 1) {2101} PROGRAMMING 500.0 142788
21339 Dinner Time constructive algorithms math Statement A Codeforces Round 1024 (Div. 2) {2102} PROGRAMMING 250.0 142788
597 Keep the Sum constructive algorithms data structures Statement E Codeforces Round 1019 (Div. 2) {2103} PROGRAMMING 2750.0 142149
3960 Local Construction constructive algorithms dfs and similar graphs implementation two pointers Statement D Codeforces Round 1019 (Div. 2) {2103} PROGRAMMING 2000.0 142149
28287 St. Chroma constructive algorithms greedy math Statement B Codeforces Round 1020 (Div. 3) {2106} PROGRAMMING Codeforces Round 1020 (Div. 3) Editorial
12003 Maximum Subarray Sum binary search constructive algorithms implementation math Statement C Codeforces Round 1023 (Div. 2) {2107} PROGRAMMING 1500.0 Codeforces Round 1023 (Div 2) Editorial
924 Ain and Apple Tree constructive algorithms greedy math trees Statement E Codeforces Round 1023 (Div. 2) {2107} PROGRAMMING 2750.0 Codeforces Round 1023 (Div 2) Editorial
14479 SUMdamental Decomposition bitmasks constructive algorithms greedy implementation math Statement B Codeforces Round 1022 (Div. 2) {2108} PROGRAMMING 1250.0 Codeforces Round 1022 Editorial
875 Spruce Dispute constructive algorithms dfs and similar graphs implementation shortest paths trees Statement E Codeforces Round 1022 (Div. 2) {2108} PROGRAMMING 2750.0 Codeforces Round 1022 Editorial
11324 Hacking Numbers (Easy Version) bitmasks constructive algorithms interactive math number theory Statement C1 Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 1250.0 Codeforces Round 1025 (Div. 2) Editorial
8586 Hacking Numbers (Medium Version) constructive algorithms interactive math number theory Statement C2 Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 750.0 Codeforces Round 1025 (Div. 2) Editorial
3175 Hacking Numbers (Hard Version) constructive algorithms interactive math number theory Statement C3 Codeforces Round 1025 (Div. 2) {2109} PROGRAMMING 500.0 Codeforces Round 1025 (Div. 2) Editorial
15735 Racing constructive algorithms dp greedy Statement C Codeforces Round 1026 (Div. 2) {2110} PROGRAMMING 1500.0 Codeforces Round 1026 (Div. 2) Editorial
1400 Puzzle brute force constructive algorithms greedy math Statement F Educational Codeforces Round 179 (Rated for Div. 2) {2111} PROGRAMMING Educational Codeforces Round 179 Editorial
11909 Creating a Schedule constructive algorithms data structures greedy sortings Statement D Educational Codeforces Round 179 (Rated for Div. 2) {2111} PROGRAMMING Educational Codeforces Round 179 Editorial
9365 Reachability and Tree constructive algorithms dfs and similar dp trees Statement D Educational Codeforces Round 180 (Rated for Div. 2) {2112} PROGRAMMING Educational Codeforces Round 180 — Editorial
2859 Cheater binary search constructive algorithms data structures greedy Statement D Codeforces Round 1031 (Div. 2) {2113} PROGRAMMING 1750.0 Codeforces Round #1031 Editorial
7930 Smilo and Minecraft brute force constructive algorithms dp greedy Statement C Codeforces Round 1031 (Div. 2) {2113} PROGRAMMING 1250.0 Codeforces Round #1031 Editorial
948 Two Arrays constructive algorithms dfs and similar graphs math Statement F Codeforces Round 1031 (Div. 2) {2113} PROGRAMMING 3000.0 Codeforces Round #1031 Editorial
14807 Gellyfish and Flaming Peony brute force constructive algorithms dp greedy math number theory shortest paths Statement A Codeforces Round 1028 (Div. 1) {2115} PROGRAMMING 500.0 Codeforces Round 1028 (Div.1, Div.2) Editorial
3945 Gellyfish and Camellia Japonica constructive algorithms dfs and similar dp graphs greedy Statement B Codeforces Round 1028 (Div. 1) {2115} PROGRAMMING 1250.0 Codeforces Round 1028 (Div.1, Div.2) Editorial
32048 Shrink constructive algorithms Statement B Codeforces Round 1029 (Div. 3) {2117} PROGRAMMING Codeforces Round 1029 (Div. 3) Editorial
19946 Make It Permutation constructive algorithms Statement B Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 1000.0 Codeforces Round 1030 (Div. 2) Editorial
29026 Equal Subsequences constructive algorithms greedy Statement A Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 500.0 Codeforces Round 1030 (Div. 2) Editorial
1412 Grid Coloring constructive algorithms greedy sortings Statement E Codeforces Round 1030 (Div. 2) {2118} PROGRAMMING 2500.0 Codeforces Round 1030 (Div. 2) Editorial
16154 A Good Problem bitmasks constructive algorithms math Statement C Codeforces Round 1035 (Div. 2) {2119} PROGRAMMING 1500.0 Codeforces Round 1035 (Div. 2) Editorial
12482 Divine Tree constructive algorithms greedy math sortings trees Statement C Codeforces Round 1033 (Div. 2) and CodeNite 2025 {2120} PROGRAMMING 1250.0 Codeforces Round 1033 (Div. 2) and CodeNite 2025 Editorial
32415 Above the Clouds constructive algorithms greedy strings Statement B Codeforces Round 1032 (Div. 3) {2121} PROGRAMMING Codeforces Round 1032 (Div. 3) Editorial
128 Colorful Polygon constructive algorithms divide and conquer geometry Statement F Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) {2122} PROGRAMMING 3250.0 Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) Editorial
19144 Greedy Grid constructive algorithms greedy Statement A Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) {2122} PROGRAMMING 500.0 Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) Editorial
8325 Manhattan Pairs constructive algorithms greedy math sortings Statement C Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) {2122} PROGRAMMING 1500.0 Order Capital Round 1 (Codeforces Round 1038, Div. 1 + Div. 2) Editorial
21739 Binary String Battle constructive algorithms games greedy Statement D Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
9711 Minimize Fixed Points constructive algorithms number theory Statement F Codeforces Round 1034 (Div. 3) {2123} PROGRAMMING Codeforces Round 1034 (Div. 3) Editorial
3800 Make it Zero constructive algorithms math Statement E EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) {2124} PROGRAMMING 2000.0 EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) Editorial
194 Lexicographic Partition constructive algorithms math trees Statement I EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) {2124} PROGRAMMING 4750.0 EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) Editorial
19133 Deranged Deletions constructive algorithms sortings Statement A EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) {2124} PROGRAMMING 500.0 EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) Editorial
27869 Difficult Contest constructive algorithms implementation sortings strings Statement A Educational Codeforces Round 181 (Rated for Div. 2) {2125} PROGRAMMING Educational Codeforces Round 181 Editorial
104 Inter Active (Hard Version) binary search bitmasks constructive algorithms graphs implementation interactive math probabilities Statement G2 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 2750.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
99 Inter Active (Easy Version) binary search constructive algorithms interactive interactive Statement G1 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 2750.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
2721 Ancient Tree constructive algorithms data structures dfs and similar dsu greedy trees Statement E Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 2500.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
19570 Mix Mex Max constructive algorithms greedy math Statement A Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) {2127} PROGRAMMING 500.0 Atto Round 1 (Codeforces Round 1041, Div. 1 + Div. 2) Editorial
788 Submedians (Hard Version) binary search constructive algorithms data structures two pointers Statement E2 Codeforces Round 1039 (Div. 2) {2128} PROGRAMMING 1750.0 Codeforces Round #1039 — Editorial
21312 Deque Process constructive algorithms greedy sortings two pointers Statement B Codeforces Round 1039 (Div. 2) {2128} PROGRAMMING 1000.0 Codeforces Round #1039 — Editorial
1655 Interactive RBS (Hard Version) binary search bitmasks constructive algorithms dp interactive Statement C3 Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 750.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
3835 Interactive RBS (Easy Version) binary search bitmasks constructive algorithms interactive Statement C1 Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 750.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
2485 Interactive RBS (Medium Version) binary search bitmasks constructive algorithms interactive Statement C2 Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 750.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
13165 Stay or Mirror constructive algorithms data structures dp greedy Statement B Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 1000.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
16551 Double Perspective constructive algorithms dp dsu greedy Statement A Codeforces Round 1040 (Div. 1) {2129} PROGRAMMING 500.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
21292 Pathless constructive algorithms Statement B Codeforces Round 1040 (Div. 2) {2130} PROGRAMMING 1000.0 Codeforces Round 1040 (Div. 1, Div. 2) Editorial
877 Sea, You & copriMe brute force combinatorics constructive algorithms graphs greedy math number theory Statement H Codeforces Round 1042 (Div. 3) {2131} PROGRAMMING Codeforces Round 1042 (Div. 3) Editorial
30839 Alternating Series constructive algorithms greedy math Statement B Codeforces Round 1042 (Div. 3) {2131} PROGRAMMING Codeforces Round 1042 (Div. 3) Editorial
1663 I Yearned For The Mines constructive algorithms dfs and similar trees Statement E Codeforces Round 1044 (Div. 2) {2133} PROGRAMMING 2750.0 Codeforces Round 1044 (Div. 2) Editorial
3624 Sliding Tree constructive algorithms dfs and similar trees Statement D Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 2000.0 145832
2379 Power Boxes constructive algorithms dp interactive Statement E Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 2250.0 145832
26457 Painting With Two Colors constructive algorithms implementation math Statement A Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 500.0 145832
20750 Add 0 or K constructive algorithms math number theory Statement B Codeforces Round 1045 (Div. 2) {2134} PROGRAMMING 1250.0 145832
986 From the Unknown (Hard Version) binary search brute force constructive algorithms interactive math Statement D2 Codeforces Round 1046 (Div. 1) {2135} PROGRAMMING 1250.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
7299 For the Champion constructive algorithms interactive math Statement B Codeforces Round 1046 (Div. 1) {2135} PROGRAMMING 1000.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
2409 From the Unknown (Easy Version) constructive algorithms interactive math Statement D1 Codeforces Round 1046 (Div. 1) {2135} PROGRAMMING 1250.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
20822 Like the Bitset constructive algorithms greedy two pointers Statement B Codeforces Round 1046 (Div. 2) {2136} PROGRAMMING 1000.0 Codeforces Round 1046 (Div. 1, Div. 2) Editorial
19405 Replace with Occurrences constructive algorithms Statement D Codeforces Round 1047 (Div. 3) {2137} PROGRAMMING Codeforces Round 1047 (Div. 3) Editorial
35132 Collatz Conjecture constructive algorithms math Statement A Codeforces Round 1047 (Div. 3) {2137} PROGRAMMING Codeforces Round 1047 (Div. 3) Editorial
26314 Fun Permutation constructive algorithms math number theory Statement B Codeforces Round 1047 (Div. 3) {2137} PROGRAMMING Codeforces Round 1047 (Div. 3) Editorial
16914 Cake Assignment bitmasks constructive algorithms Statement A Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 500.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
80 Ode to the Bridge Builder constructive algorithms Statement F Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 4250.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
237 Determinant Construction (Easy Version) constructive algorithms matrices Statement E1 Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 2750.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
183 Determinant Construction (Hard Version) constructive algorithms matrices Statement E2 Codeforces Round 1048 (Div. 1) {2138} PROGRAMMING 1500.0 Codeforces Round 1048 (Div. 1, Div. 2) Editorial
22011 Another Divisibility Problem constructive algorithms math number theory Statement B Codeforces Round 1049 (Div. 2) {2140} PROGRAMMING 1000.0 Codeforces Round 1049 (Div. 2) Editorial
1878 Make Good constructive algorithms math strings Statement E Codeforces Round 1051 (Div. 2) {2143} PROGRAMMING 2500.0 Codeforces Round 1051 (Div. 2) Editorial
909 Bracket Groups constructive algorithms dp strings Statement F Educational Codeforces Round 182 (Rated for Div. 2) {2144} PROGRAMMING Educational Codeforces Round 182 Editorial
18358 Maximum Cost Permutation constructive algorithms greedy Statement B Educational Codeforces Round 182 (Rated for Div. 2) {2144} PROGRAMMING Educational Codeforces Round 182 Editorial
6634 Inversion Value of a Permutation constructive algorithms dfs and similar dp math Statement D Educational Codeforces Round 183 (Rated for Div. 2) {2145} PROGRAMMING Educational Codeforces Round 183 Editorial
13232 Wrong Binary Search binary search constructive algorithms Statement C Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 1250.0 Codeforces Round 1052 (Div. 2) Editorial
4004 Max Sum OR (Hard Version) bitmasks constructive algorithms divide and conquer greedy Statement D2 Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 1000.0 Codeforces Round 1052 (Div. 2) Editorial
10346 Max Sum OR (Easy Version) bitmasks constructive algorithms divide and conquer greedy trees Statement D1 Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 1500.0 Codeforces Round 1052 (Div. 2) Editorial
2027 Yet Another MEX Problem brute force constructive algorithms data structures greedy Statement E Codeforces Round 1052 (Div. 2) {2146} PROGRAMMING 2500.0 Codeforces Round 1052 (Div. 2) Editorial
18540 Shortest Increasing Path constructive algorithms Statement A Codeforces Global Round 29 (Div. 1 + Div. 2) {2147} PROGRAMMING 500.0
16826 Multiple Construction constructive algorithms Statement B Codeforces Global Round 29 (Div. 1 + Div. 2) {2147} PROGRAMMING 1000.0
132 Longest Increasing Path (Easy Version) constructive algorithms Statement I1 Codeforces Global Round 29 (Div. 1 + Div. 2) {2147} PROGRAMMING 4000.0
102 Longest Increasing Path (Hard Version) constructive algorithms Statement I2 Codeforces Global Round 29 (Div. 1 + Div. 2) {2147} PROGRAMMING 3500.0
201 Cycle Closing constructive algorithms graphs trees Statement F Codeforces Round 1053 (Div. 1) {2150} PROGRAMMING 3250.0 Editorial of Codeforces Round 1053 (Div. 1, Div. 2)
2757 Monotone Subsequence brute force constructive algorithms dp graphs interactive math Statement E Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) {2152} PROGRAMMING 3000.0 Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) Editorial
4726 Catshock constructive algorithms dfs and similar graphs trees Statement D Codeforces Round 1060 (Div. 2) {2154} PROGRAMMING 1750.0 Codeforces Round 1060 (Div. 2) Editorial
19674 Make it Zigzag constructive algorithms greedy Statement B Codeforces Round 1060 (Div. 2) {2154} PROGRAMMING 1000.0 Codeforces Round 1060 (Div. 2) Editorial
16873 Abraham's Great Escape constructive algorithms graphs Statement B Codeforces Round 1056 (Div. 2) {2155} PROGRAMMING 1000.0 Codeforces Round 1056 (Div. 2) Editorial
5337 Find the Last Number bitmasks constructive algorithms interactive math Statement D Codeforces Round 1061 (Div. 2) {2156} PROGRAMMING 2000.0 Codeforces Round 1061 (Div. 2) Editorial
26706 Pizza Time brute force constructive algorithms greedy Statement A Codeforces Round 1061 (Div. 2) {2156} PROGRAMMING 500.0 Codeforces Round 1061 (Div. 2) Editorial
115 Keygen 3 brute force combinatorics constructive algorithms Statement H Codeforces Round 1066 (Div. 1 + Div. 2) {2157} PROGRAMMING 3750.0 Codeforces Round 1066 (Div. 1 + Div. 2) Editorial
402 Isaac's Queries brute force constructive algorithms dfs and similar divide and conquer greedy interactive math probabilities Statement G Codeforces Round 1066 (Div. 1 + Div. 2) {2157} PROGRAMMING 3000.0 Codeforces Round 1066 (Div. 1 + Div. 2) Editorial
1275 Git Gud constructive algorithms data structures divide and conquer Statement F Codeforces Round 1066 (Div. 1 + Div. 2) {2157} PROGRAMMING 2500.0 Codeforces Round 1066 (Div. 1 + Div. 2) Editorial
9136 Meximum Array 2 constructive algorithms greedy math Statement C Codeforces Round 1066 (Div. 1 + Div. 2) {2157} PROGRAMMING 1500.0 Codeforces Round 1066 (Div. 1 + Div. 2) Editorial
3246 Palindrome Flipping brute force constructive algorithms implementation strings Statement D Codeforces Round 1067 (Div. 2) {2158} PROGRAMMING 2000.0 Codeforces Round 1067 (Div. 2) Editorial
209 Distinct GCDs (Hard Version) combinatorics constructive algorithms graphs graphs graphs math number theory number theory Statement F2 Codeforces Round 1067 (Div. 2) {2158} PROGRAMMING 1000.0 Codeforces Round 1067 (Div. 2) Editorial
373 Distinct GCDs (Easy Version) constructive algorithms constructive algorithms graphs graphs number theory number theory Statement F1 Codeforces Round 1067 (Div. 2) {2158} PROGRAMMING 2500.0 Codeforces Round 1067 (Div. 2) Editorial
13794 Split constructive algorithms greedy math Statement B Codeforces Round 1067 (Div. 2) {2158} PROGRAMMING 1250.0 Codeforces Round 1067 (Div. 2) Editorial
8086 MAD Interactive Problem constructive algorithms implementation interactive Statement A Codeforces Round 1058 (Div. 1) {2159} PROGRAMMING 750.0 Codeforces Round 1058 Editorial
12409 Loyalty constructive algorithms greedy sortings two pointers Statement C Pinely Round 5 (Div. 1 + Div. 2) {2161} PROGRAMMING 1750.0
21138 Beautiful XOR bitmasks constructive algorithms Statement C Codeforces Round 1059 (Div. 3) {2162} PROGRAMMING Codeforces Round 1059 (Div. 3) Editorial
27714 Beautiful String constructive algorithms Statement B Codeforces Round 1059 (Div. 3) {2162} PROGRAMMING Codeforces Round 1059 (Div. 3) Editorial
2886 Beautiful Intervals constructive algorithms greedy Statement F Codeforces Round 1059 (Div. 3) {2162} PROGRAMMING Codeforces Round 1059 (Div. 3) Editorial
9244 Beautiful Palindromes constructive algorithms greedy schedules Statement E Codeforces Round 1059 (Div. 3) {2162} PROGRAMMING Codeforces Round 1059 (Div. 3) Editorial
2795 Beautiful Tree constructive algorithms math trees Statement G Codeforces Round 1059 (Div. 3) {2162} PROGRAMMING Codeforces Round 1059 (Div. 3) Editorial
9067 Siga ta Kymata constructive algorithms math Statement B Codeforces Round 1063 (Div. 2) {2163} PROGRAMMING 1000.0 Codeforces Round 1063 Editorial
13965 Cyclic Merging brute force constructive algorithms graphs greedy trees Statement A Codeforces Round 1064 (Div. 1) {2165} PROGRAMMING 500.0 148452
35775 Isamatdin and His Magic Wand! constructive algorithms greedy implementation sortings Statement C Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
1541 Locate binary search constructive algorithms greedy interactive Statement B Testing Round 20 (Unrated, Communication Problems) {2168} PROGRAMMING Testing Round 20 Editorial (officially unofficial)
867 Intercepting Butterflies bitmasks constructive algorithms graphs interactive Statement C Testing Round 20 (Unrated, Communication Problems) {2168} PROGRAMMING Testing Round 20 Editorial (officially unofficial)
5006 Encode and Decode (Easy Version) constructive algorithms interactive Statement A1 Testing Round 20 (Unrated, Communication Problems) {2168} PROGRAMMING Testing Round 20 Editorial (officially unofficial)
2251 Removal of a Sequence (Hard Version) binary search constructive algorithms divide and conquer greedy implementation math number theory probabilities Statement D2 Educational Codeforces Round 184 (Rated for Div. 2) {2169} PROGRAMMING Educational Codeforces Round 184 Editorial
1664 Almost Roman constructive algorithms greedy implementation Statement D Educational Codeforces Round 185 (Rated for Div. 2) {2170} PROGRAMMING Educational Codeforces Round 185 Editorial
7038 Rae Taylor and Trees (hard version) binary search constructive algorithms data structures dp dsu implementation trees Statement F Codeforces Round 1065 (Div. 3) {2171} PROGRAMMING Codeforces Round 1065 (Div. 3) Editorial
3605 Anisphia Wynn Palettia and Good Permutations constructive algorithms greedy number theory Statement E Codeforces Round 1065 (Div. 3) {2171} PROGRAMMING Codeforces Round 1065 (Div. 3) Editorial
5788 Number Maze constructive algorithms implementation Statement E 2025 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2172} PROGRAMMING
6653 Xmas or Hysteria constructive algorithms graphs greedy implementation Statement D Good Bye 2025 {2178} PROGRAMMING 1750.0
13361 Blackslex and Penguin Civilization bitmasks constructive algorithms greedy math Statement D Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
5719 Blackslex and Girls constructive algorithms geometry math Statement E Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
6386 XOR-factorization bitmasks constructive algorithms dp greedy number theory Statement C Codeforces Global Round 31 (Div. 1 + Div. 2) {2180} PROGRAMMING 1500.0 Codeforces Global Round 31
137 Elevator Against Humanity brute force constructive algorithms greedy sortings Statement E 2025-2026 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {2181} PROGRAMMING Tutorial
79 Pairs Flipping (Easy Version) constructive algorithms Statement I1 Hello 2026 {2183} PROGRAMMING 4500.0
66 Pairs Flipping (Hard Version) constructive algorithms Statement I2 Hello 2026 {2183} PROGRAMMING 1000.0
2480 Tree Coloring (Hard Version) constructive algorithms data structures dfs and similar greedy implementation trees Statement D2 Hello 2026 {2183} PROGRAMMING 2000.0
8734 Tree Coloring (Easy Version) constructive algorithms dfs and similar greedy trees Statement D1 Hello 2026 {2183} PROGRAMMING 1000.0
16051 Yet Another MEX Problem constructive algorithms greedy Statement B Hello 2026 {2183} PROGRAMMING 1000.0
42342 Perfect Root constructive algorithms math Statement A Codeforces Round 1074 (Div. 4) {2185} PROGRAMMING Codeforces Round 1074 (Div. 4) Editorial
15677 Restricted Sorting binary search constructive algorithms greedy sortings Statement A Codeforces Round 1077 (Div. 1) {2187} PROGRAMMING 750.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial
5179 Shortest Statement Ever bitmasks constructive algorithms dp greedy Statement B Codeforces Round 1077 (Div. 1) {2187} PROGRAMMING 1250.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial
25705 Divisible Permutation constructive algorithms Statement A Codeforces Round 1077 (Div. 2) {2188} PROGRAMMING 500.0 Codeforces Round 1077 (Div. 1, Div. 2) Editorial
13730 XOR Convenience (Easy Version) bitmasks brute force constructive algorithms math Statement C1 Codeforces Round 1075 (Div. 2) {2189} PROGRAMMING 1250.0 Codeforces Round 1075 (Div. 2) Editorial
6133 XOR-convenience (Hard Version) bitmasks brute force constructive algorithms math Statement C2 Codeforces Round 1075 (Div. 2) {2189} PROGRAMMING 750.0 Codeforces Round 1075 (Div. 2) Editorial
10510 Sub-RBS (Easy Version) combinatorics constructive algorithms dp greedy strings two pointers Statement B1 Codeforces Round 1073 (Div. 1) {2190} PROGRAMMING 750.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
27547 Array Coloring constructive algorithms Statement A Codeforces Round 1073 (Div. 2) {2191} PROGRAMMING 500.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
19690 MEX Reordering constructive algorithms sortings Statement B Codeforces Round 1073 (Div. 2) {2191} PROGRAMMING 1000.0 Codeforces Round 1073 (Div. 1, Div. 2) Editorial
2002 Swap to Rearrange constructive algorithms dfs and similar graph matchings graphs greedy strings Statement E Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 2250.0 Codeforces Round 1081 (Div. 2) Editorial
14261 Flipping Binary String constructive algorithms strings Statement B Codeforces Round 1081 (Div. 2) {2192} PROGRAMMING 1000.0 Codeforces Round 1081 (Div. 2) Editorial
7685 Table Cut constructive algorithms greedy Statement D Codeforces Round 1078 (Div. 2) {2194} PROGRAMMING 2000.0 Codeforces Round #1078 Editorial
452 Codeforces Heuristic Contest 001 brute force constructive algorithms geometry implementation Statement H Codeforces Round 1080 (Div. 3) {2195} PROGRAMMING Codeforces Round 1080 (Div. 3) Editorial
97 Indivisible constructive algorithms graphs Statement F Codeforces Round 1079 (Div. 1) {2196} PROGRAMMING 3500.0 Tutorial
382 Minesweeper *special constructive algorithms greedy Statement C Kotlin Heroes: Episode 14 {2199} PROGRAMMING 151783
4809 Recollect Numbers constructive algorithms Statement B Codeforces Round 1082 (Div. 1) {2201} PROGRAMMING 1250.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
60 Codeforces Heuristic Contest 1001 constructive algorithms Statement G Codeforces Round 1082 (Div. 1) {2201} PROGRAMMING 5000.0 Codeforces Round 1082 (Div. 1, Div. 2) Complete Editorial
4603 Sum of Digits (and Again) brute force constructive algorithms math Statement E Educational Codeforces Round 188 (Rated for Div. 2) {2204} PROGRAMMING Educational Codeforces Round 188 Editorial
16857 Simons and Making It Beautiful brute force constructive algorithms Statement A Codeforces Round 1083 (Div. 2) {2205} PROGRAMMING 500.0 Tutorial
615 Simons and Reconstructing His Roads constructive algorithms data structures dsu graphs meet-in-the-middle Statement F Codeforces Round 1083 (Div. 2) {2205} PROGRAMMING 2750.0 Tutorial
49 Bowser's Castle (Easy Version) binary search constructive algorithms divide and conquer greedy interactive trees Statement H1 Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 3250.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
141 Toothless constructive algorithms Statement G Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 3750.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
37 Bowser's Castle (Medium Version) constructive algorithms divide and conquer interactive trees two pointers Statement H2 Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 1000.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
53 Bowser's Castle (Hard Version) constructive algorithms divide and conquer interactive trees two pointers Statement H3 Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 1500.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
1598 N-MEX (Constructive Version) constructive algorithms greedy Statement E1 Codeforces Round 1085 (Div. 1 + Div. 2) {2207} PROGRAMMING 1750.0 Codeforces Round 1085 (Div. 1 + Div. 2) Editorial
4041 Tree Orientation (Easy Version) constructive algorithms dfs and similar dsu graphs greedy trees Statement D1 Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 1250.0 Tutorial
19477 Bingo Candies constructive algorithms math Statement A Codeforces Round 1086 (Div. 2) {2208} PROGRAMMING 500.0 Tutorial
5108 Ghostfires constructive algorithms greedy Statement D Codeforces Round 1087 (Div. 2) {2209} PROGRAMMING 1750.0 Codeforces Round 1087 (Div. 2) Editorial
10175 Find the Zero constructive algorithms interactive Statement C Codeforces Round 1087 (Div. 2) {2209} PROGRAMMING 1500.0 Codeforces Round 1087 (Div. 2) Editorial
21223 A Simple Sequence constructive algorithms dp greedy number theory Statement A Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 500.0 Codeforces Round 1089 (Div. 2) Editorial
297 Binary Strings are Simple? constructive algorithms dsu interactive number theory Statement E Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 2750.0 Codeforces Round 1089 (Div. 2) Editorial
1906 A Simple RBS Problem constructive algorithms strings trees Statement D Codeforces Round 1089 (Div. 2) {2210} PROGRAMMING 2250.0 Codeforces Round 1089 (Div. 2) Editorial
477 Oriented Journey bitmasks communication constructive algorithms graphs hashing interactive trees Statement C Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) {2215} PROGRAMMING 1750.0
113 Star Map constructive algorithms data structures geometry greedy Statement E Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) {2215} PROGRAMMING 3000.0
1768 Interval Mod constructive algorithms dp greedy math Statement A Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) {2215} PROGRAMMING 750.0
1805 Definitely Larger binary search constructive algorithms data structures greedy Statement E Codeforces Round 1091 (Div. 2) and CodeCraft 26 {2217} PROGRAMMING 2000.0
24121 The 67th Permutation Problem constructive algorithms greedy math Statement C Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING
6399 The 67th Tree Problem constructive algorithms implementation trees Statement F Codeforces Round 1090 (Div. 4) {2218} PROGRAMMING
2563 Unique Values (Hard version) binary search constructive algorithms divide and conquer interactive math Statement B2 Codeforces Round 1093 (Div. 1) {2219} PROGRAMMING 500.0
45 Weird Chessboard constructive algorithms math Statement E Codeforces Round 1093 (Div. 1) {2219} PROGRAMMING 3000.0