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

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
6601 Ancient Berland Circus geometry math Statement C Codeforces Beta Round 1 {1} PROGRAMMING 85 2100
3895 Four Segments brute force constructive algorithms geometry implementation math Statement C Codeforces Beta Round 14 (Div. 2) {14} PROGRAMMING Codeforces Beta Round #14 tutorial 1800
410 Tetragon geometry math Statement D Codeforces Beta Round 23 {23} PROGRAMMING Codeforces Beta Round #23 tutorial 2600
1466 Sequence of points geometry implementation math Statement C Codeforces Beta Round 24 {24} PROGRAMMING Codeforces Beta Round #24 solutions 1800
157 DravDe saves the world geometry math Statement E Codeforces Beta Round 28 (Codeforces format) {28} PROGRAMMING Codeforces Round 28 - tutorial 2700
4489 Find Color constructive algorithms geometry implementation math Statement A Codeforces Beta Round 39 {40} PROGRAMMING codeforces #39 1300
139036 Ultra-Fast Mathematician implementation Statement A Codeforces Beta Round 57 (Div. 2) {61} PROGRAMMING Round 57-A 900
408 Archer's Shot binary search geometry math two pointers Statement D Codeforces Beta Round 70 (Div. 2) {78} PROGRAMMING Solutions for Codeforces Beta Round #70 (Div. 2) 2400
5056 Depression geometry math Statement B Codeforces Beta Round 69 (Div. 2 Only) {80} PROGRAMMING Problem analysis: Codeforces Beta Round #69 Falling Anvils (Div. 1 - Problem B , Div. 2 - Problem D) 1200
432 Rotation *special geometry math Statement I Unknown Language Round 3 {100} PROGRAMMING 1700
139 Birthday geometry math Statement E Codeforces Beta Round 94 (Div. 1 Only) {128} PROGRAMMING 3219 2900
2702 Rectangle and Square brute force geometry math Statement B Codeforces Beta Round 97 (Div. 1) {135} PROGRAMMING Codeforces Beta Round #97: editorial 1600
4392 New Year Table geometry math Statement A Codeforces Round 100 {140} PROGRAMMING Codeforces Round #100: problem analysis 1700
5830 Hopscotch geometry math Statement B Codeforces Round 101 (Div. 2) {141} PROGRAMMING Codeforces Round #101 (Div. 2) Разбор Задач. 1400
8935 Series of Crimes brute force geometry implementation Statement A Croc Champ 2012 - Round 2 (Unofficial Div. 2 Edition) {181} PROGRAMMING Croc Champ 2012 — Round 2 — Editorial 800
1138 Analyzing Polyline geometry math sortings Statement D Codeforces Round 123 (Div. 2) {195} PROGRAMMING Codeforces Round #123 (Div. 2) Разбор Задач 1900
1516 Hit Ball geometry implementation math Statement D Codeforces Round 128 (Div. 2) {203} PROGRAMMING 1700
338 Little Elephant and Triangle geometry math Statement D Codeforces Round 136 (Div. 1) {220} PROGRAMMING Codeforces Round #136 — Editorial 2500
30654 Parallelepiped brute force geometry math Statement A Codeforces Round 138 (Div. 2) {224} PROGRAMMING 1100
579 Donkey and Stars data structures dp geometry math sortings Statement D Codeforces Round 152 (Div. 1) {249} PROGRAMMING Разбор задач Codeforces Round #152 2600
4759 View Angle brute force geometry math Statement C Codeforces Round 159 (Div. 2) {257} PROGRAMMING Codeforces Round #159 (Div. 2) Разбор Задач 1700
51473 Fancy Fence geometry implementation math Statement A Codeforces Round 165 (Div. 2) {270} PROGRAMMING Разбор Codeforces Round #165 1200
284 Ksusha and Square geometry math probabilities two pointers Statement D Croc Champ 2013 - Round 2 {293} PROGRAMMING Croc Champ 2013 — Round 2 — Editorial 2700
809 Interval Cubing data structures math Statement D Codeforces Round 185 (Div. 1) {311} PROGRAMMING Codeforces Round #185 Editorial (Div.2 B&Div.1 E) 2500
5199 Triangle brute force geometry implementation math Statement A Codeforces Round 239 (Div. 1) {407} PROGRAMMING Codeforces Round #239 Editorial 1700
404 Roland and Rose brute force geometry math sortings Statement E Codeforces Round 262 (Div. 2) {460} PROGRAMMING 13465 2700
251 Gears brute force geometry math Statement D Codeforces Round 283 (Div. 1) {497} PROGRAMMING 2800
26863 Amr and Pins geometry math Statement B Codeforces Round 287 (Div. 2) {507} PROGRAMMING Editorial 1400
22798 Han Solo and Lazer Gun brute force data structures geometry implementation math Statement B Codeforces Round 291 (Div. 2) {514} PROGRAMMING Codeforces Round #291 (Div. 2) Editorial 1400
920 Tavas and Pashmaks geometry math Statement E Codeforces Round 299 (Div. 2) {535} PROGRAMMING Codeforces Round #299 Editorial 2900
179 Sasha Circle geometry math Statement E Looksery Cup 2015 {549} PROGRAMMING Looksery Cup 2015 Editorial 3200
4876 Vanya and Triangles brute force combinatorics data structures geometry math sortings Statement D Codeforces Round 308 (Div. 2) {552} PROGRAMMING Codeforces #308 (Div. 2) Editorial 1900
10942 Gerald's Hexagon brute force geometry math Statement A Codeforces Round 313 (Div. 1) {559} PROGRAMMING Codeforces Round 313 — Extended editoral 1600
335 Sign Posts brute force geometry math Statement D Codeforces Round 315 (Div. 1) {568} PROGRAMMING Codeforces Round #315 Editorial 2800
4976 A Problem about Polyline geometry math Statement A Codeforces Round 320 (Div. 1) [Bayan Thanks-Round] {578} PROGRAMMING Codeforces Round #320 [Bayan Thanks-Round] Editorial 1700
4864 Three Logos bitmasks brute force constructive algorithms geometry implementation math Statement D Codeforces Round 322 (Div. 2) {581} PROGRAMMING Codeforces Round #322 (Div.2) Editorial 1700
2058 Chip 'n Dale Rescue Rangers binary search geometry math Statement B Codeforces Round 327 (Div. 1) {590} PROGRAMMING Codeforces Round #327 problems analysis 2100
383 Ruminations on Ruminants geometry math Statement D Codeforces Round 334 (Div. 1) {603} PROGRAMMING Codeforces Round #334 Bonus Editorial: More Ideas on Div. 1 E 2900
1413 Turn geometry math Statement M Experimental Educational Round: VolBIT Formulas Blitz {630} PROGRAMMING 24160 2000
1494 Pyramids geometry math Statement Q Experimental Educational Round: VolBIT Formulas Blitz {630} PROGRAMMING Разбор задач Experimental Educational Round: VolBIT Formulas Blitz 2100
16747 Watchmen data structures geometry math Statement A Codeforces Round 345 (Div. 1) {650} PROGRAMMING Codeforces Round #345: editorial 1500
6740 Bicycle Race geometry implementation math Statement D Codeforces Round 346 (Div. 2) {659} PROGRAMMING Editorial for Codeforces Round #346 (Div. 2) 1500
8562 Pouring Rain geometry math Statement A Codeforces Round 349 (Div. 2) {667} PROGRAMMING Codeforces Round #349 Editorial 1100
38827 Mahmoud and a Triangle constructive algorithms geometry greedy math number theory sortings Statement B Codeforces Round 396 (Div. 2) {766} PROGRAMMING Codeforces round #396 editorial 1100
1384 Mice problem geometry implementation math sortings Statement C Tinkoff Challenge - Elimination Round {793} PROGRAMMING 51685 2200
7323 Cutting Carrot geometry math Statement B Tinkoff Challenge - Final Round (Codeforces Round 414, rated, Div. 1 + Div. 2) {794} PROGRAMMING Editorial 1300
5528 Mister B and Angle in Polygon constructive algorithms geometry math Statement B Codeforces Round 421 (Div. 2) {820} PROGRAMMING Codeforces Round #421 Editorial 1300
3404 Five Dimensional Points brute force geometry math Statement A Codeforces Round 432 (Div. 1, based on IndiaHacks Final Round 2017) {850} PROGRAMMING Codeforces Round #432 editorial 1700
5909 Arpa and an exam about geometry geometry math Statement B Codeforces Round 432 (Div. 2, based on IndiaHacks Final Round 2017) {851} PROGRAMMING Codeforces Round #432 editorial 1400
7966 Lazy Security Guard brute force geometry math Statement B MemSQL Start[c]UP 3.0 - Round 1 {859} PROGRAMMING Tutorial 1000
7242 New Year and Curling brute force geometry implementation math Statement C Good Bye 2017 {908} PROGRAMMING Good Bye 2017 Editorial 1500
1791 Guard Duty (easy) brute force geometry greedy math Statement E1 Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) {958} PROGRAMMING helvetic-coding-contest-2018-editorial.pdf 1800
2411 Ghosts geometry math Statement D Codeforces Round 478 (Div. 2) {975} PROGRAMMING Codeforces Round #478 (Div. 2), Editorial 2000
592 A Shade of Moonlight binary search geometry math sortings two pointers Statement D Codeforces Round 487 (Div. 2) {989} PROGRAMMING Codeforces Round #487 (Div. 2) Editorial 2500
2071 Leaving the Bar brute force data structures geometry greedy math sortings Statement C Codeforces Round 492 (Div. 1) [Thanks, uDebug!] {995} PROGRAMMING Editorial for Codeforces Round #492 [Thanks u-Debug!] 2200
133 Shady Lady geometry math Statement F Bubble Cup 11 - Finals [Online Mirror, Div. 1] {1045} PROGRAMMING E 3500
18895 Cover Points geometry math Statement B Codeforces Round 511 (Div. 2) {1047} PROGRAMMING Codeforces Round #511 Editorial 900
25476 Make a triangle! brute force geometry math Statement A Codeforces Round 516 (Div. 2, by Moscow Team Olympiad) {1064} PROGRAMMING Codeforces Round #516 (by Moscow Team Olympiad) — Editorial 700
10964 NN and the Optical Illusion binary search geometry math Statement C Codeforces Round 532 (Div. 2) {1100} PROGRAMMING Unofficial Tutorial 1300
1015 Winding polygonal line constructive algorithms geometry greedy math Statement D Codeforces Round 559 (Div. 1) {1158} PROGRAMMING 66993 2800
4002 Power Transmission (Hard Edition) data structures geometry implementation math Statement C2 Codeforces Round 558 (Div. 2) {1163} PROGRAMMING 66943 2000
1077 Geometers Anonymous Club data structures geometry math sortings Statement F Codeforces Round 574 (Div. 2) {1195} PROGRAMMING Разбор Codeforces Round #574 (Div. 2) 2700
22613 Water Lily geometry math Statement B Codeforces Round 576 (Div. 2) {1199} PROGRAMMING E 1000
10504 White Sheet geometry math Statement C Codeforces Round 587 (Div. 3) {1216} PROGRAMMING Codeforces Round #587 (Div. 3) Editorial 1500
15144 Integer Points geometry math Statement A Codeforces Round 594 (Div. 2) {1248} PROGRAMMING Editorial of Codeforces Round #594 (on the problems of Moscow Team Olympiad) 900
1782 Point Ordering constructive algorithms geometry interactive math Statement C Codeforces Round 601 (Div. 1) {1254} PROGRAMMING Codeforces Round #601 Editorial 2300
2770 Divide Points constructive algorithms geometry math Statement E Good Bye 2019 {1270} PROGRAMMING Разбор Goodbye 2019 2300
1414 New Year and Castle Construction combinatorics geometry math sortings Statement E Hello 2020 {1284} PROGRAMMING Hello 2020 Editorial 2500
13912 Cow and Friend geometry greedy math Statement B Codeforces Round 621 (Div. 1 + Div. 2) {1307} PROGRAMMING 1000.0 Codeforces Round #621 (Div. 1 + Div. 2) Editorial 1300
27666 Two Regular Polygons geometry math number theory Statement A Educational Codeforces Round 83 (Rated for Div. 2) {1312} PROGRAMMING 74640
16399 Simple Polygon Embedding binary search geometry math ternary search Statement C1 Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 1400
6402 Not So Simple Polygon Embedding binary search brute force geometry math Statement C2 Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 2000
602 RC Kaboom Show binary search brute force data structures geometry math Statement F Educational Codeforces Round 88 (Rated for Div. 2) {1359} PROGRAMMING Educational Codeforces Round 88 Editorial 2900
39304 FashionabLee geometry math Statement A Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 500.0 Codeforces Round #652 (Div. 2) Editorial 800
282 Cubic Lattice geometry math matrices number theory Statement I Codeforces Global Round 9 {1375} PROGRAMMING 4000.0 79731
325 Origami geometry math sortings Statement E Codeforces Round 658 (Div. 1) {1381} PROGRAMMING 3000.0 Codeforces Round #658 Editorial 3300
157 Mixture *special data structures geometry math sortings Statement B Baltic Olympiad in Informatics 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) {1386} PROGRAMMING T
28904 Bad Triangle geometry math Statement A Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
21918 Fence geometry math Statement A Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 500.0 Codeforces Round #675 (Div. 2) Editorial
10217 Circle Game games geometry math Statement D Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 1750.0 Editorial — Codeforces Round #685
1679 Four Points brute force constructive algorithms flows geometry greedy math ternary search Statement E Educational Codeforces Round 99 (Rated for Div. 2) {1455} PROGRAMMING 85186
17985 Diamond Miner geometry greedy math sortings Statement A Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 500.0 Codeforces Round #706 Editorial
27228 Phoenix and Puzzle geometry math Statement B Codeforces Global Round 14 {1515} PROGRAMMING 1000.0 Editorial
5291 Gift Set binary search geometry greedy math ternary search Statement G Codeforces Round 725 (Div. 3) {1538} PROGRAMMING Codeforces Round #725 (Div. 3) Editorial
21687 Contest Start combinatorics geometry math Statement A Codeforces Round 727 (Div. 2) {1539} PROGRAMMING 500.0 tutorial 1000
321 Gregor and the Odd Cows (Hard) brute force geometry math number theory Statement D2 Codeforces Round 736 (Div. 1) {1548} PROGRAMMING 1000.0 Codeforces Round 736 Editorial
1638 Gregor and the Odd Cows (Easy) geometry math number theory Statement D1 Codeforces Round 736 (Div. 1) {1548} PROGRAMMING 2000.0 Codeforces Round 736 Editorial
429 Shortest path brute force geometry math Statement G Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 1) {1599} PROGRAMMING BubbleCup2021.pdf
13272 Representative Edges brute force geometry implementation math Statement C Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 1500.0 Good Bye 2021 -- Editorial 1500
33173 Triangles on a Rectangle geometry greedy math Statement B Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
19630 Weird Sum combinatorics data structures geometry math matrices sortings Statement A Codeforces Round 775 (Div. 1, based on Moscow Open Olympiad in Informatics) {1648} PROGRAMMING 500.0 Codeforces Round #775 Editorial
154 Global Warming geometry math Statement G 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING
5700 Very Suspicious binary search brute force geometry implementation math Statement D Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 2250.0 Tutorial 1700
603 Crop Squares constructive algorithms geometry interactive math Statement F Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 3000.0 Codeforces Round #816 (Div. 2) editorial
117 Mainak and the Bleeding Polygon geometry implementation math Statement H Codeforces Round 819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 {1726} PROGRAMMING 3500.0 Codeforces Round #819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 Editorial
3199 Doremy's Pegging Game combinatorics geometry math Statement D Codeforces Global Round 24 {1764} PROGRAMMING 1750.0 Codeforces Global Round 24 Editorial
53392 Following Directions geometry implementation Statement B Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
1425 City Union constructive algorithms dp geometry greedy implementation math Statement E Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} PROGRAMMING 2250.0 Codeforces Round #854 Editorial
14326 Place for a Selfie binary search geometry math sortings Statement C Codeforces Round 862 (Div. 2) {1805} PROGRAMMING 1250.0 Editorial of Codeforces Round #862 (Div. 2)
46384 Walking Master geometry greedy math Statement A Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 500.0 Codeforces Round #858 (Div. 2) Editorial
478 Fading into Fog geometry interactive math probabilities Statement F Codeforces Round 870 (Div. 2) {1826} PROGRAMMING 3000.0 Codeforces Round #870 (Div. 2) Editorial 2800
23954 Come Together geometry implementation math Statement B Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
22830 Rudolph and Christmas Tree constructive algorithms geometry math Statement D Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
36854 Cardboard for Pictures binary search geometry implementation math Statement E Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
15746 The Morning Star combinatorics data structures geometry implementation math sortings Statement G Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
27271 2D Traveling geometry math shortest paths Statement B Codeforces Round 896 (Div. 2) {1869} PROGRAMMING 750.0 Codeforces Round 896 (Div. 1, Div. 2) Editorial
18221 Fear of the Dark binary search geometry math Statement B Educational Codeforces Round 156 (Rated for Div. 2) {1886} PROGRAMMING Educational Codeforces Round 156 Editorial
66 Innovative Washing Machine geometry math two pointers Statement I 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1912} PROGRAMMING 3300
1405 Fractal Origami combinatorics geometry math matrices Statement C Codeforces Round 921 (Div. 1) {1924} PROGRAMMING 1500.0 Codeforces Round 921 (Div. 1, Div. 2) Editorial
24548 Rectangle Cutting constructive algorithms geometry greedy math Statement A Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 500.0 Codeforces Round 924 Editorial
8229 Find a Mine constructive algorithms geometry greedy interactive math Statement C Codeforces Round 931 (Div. 2) {1934} PROGRAMMING 1500.0 Tutorial
6957 Bessie's Birthday Cake (Hard Version) geometry greedy math Statement C2 CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) {1942} PROGRAMMING 750.0 CodeTON Round 8 Editorial
12546 Bessie's Birthday Cake (Easy Version) geometry math Statement C1 CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) {1942} PROGRAMMING 1250.0 CodeTON Round 8 Editorial
12706 Circle Perimeter binary search brute force dfs and similar geometry implementation math Statement F Codeforces Round 944 (Div. 4) {1971} PROGRAMMING Codeforces Round 944 (Div. 4) Editorial 1600
4442 Field Division (easy version) data structures geometry math sortings Statement F1 Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
17959 Black Circles brute force constructive algorithms geometry greedy math Statement C EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) {2002} PROGRAMMING 1000.0 EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2) Editorial
19117 Satyam and Counting geometry math Statement D Codeforces Round 971 (Div. 4) {2009} PROGRAMMING Codeforces Round 971 (Div. 4) Editorial
20500 Perpendicular Segments brute force geometry math Statement A Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING Educational Codeforces Round 171 Editorial
22203 Rectangle Arrangement geometry implementation math Statement A Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 500.0 Codeforces Round #982 (Div. 2) Editorial
21354 Tender Carpenter dp geometry implementation math Statement A Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 500.0 Good Bye 2024: 2025 is NEAR Editorial
90 Cosmic Divide brute force geometry hashing math strings Statement F Codeforces Round 996 (Div. 2) {2055} PROGRAMMING 3500.0 Codeforces Round 996 (Div. 2) Editorial
14926 Kevin and Geometry brute force constructive algorithms data structures geometry greedy implementation math two pointers Statement B IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) {2061} PROGRAMMING 1000.0 IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) Editorial
630 Traveling Salescat dp geometry greedy math sortings Statement F Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) {2062} PROGRAMMING 3500.0 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) Editorial
12606 Do You Love Your Hero and His Two-Hit Multi-Target Attacks? binary search constructive algorithms geometry greedy math Statement E Codeforces Round 1006 (Div. 3) {2072} PROGRAMMING Codeforces Round 1006 (Div. 3) Editorial
6807 Empty Triangle geometry interactive probabilities Statement E Codeforces Round 1009 (Div. 3) {2074} PROGRAMMING Codeforces Round 1009 (Div. 3) — Editorial
1049 Bermuda Triangle chinese remainder theorem constructive algorithms geometry math number theory Statement C Codeforces Round 1021 (Div. 1) {2097} PROGRAMMING 1500.0 142316
18758 Line Segments geometry greedy math Statement B Codeforces Round 1035 (Div. 2) {2119} PROGRAMMING 1000.0 Codeforces Round 1035 (Div. 2) Editorial
20567 Square of Rectangles geometry math Statement A Codeforces Round 1033 (Div. 2) and CodeNite 2025 {2120} PROGRAMMING 500.0 Codeforces Round 1033 (Div. 2) and CodeNite 2025 Editorial
9490 khba Loves to Sleep! binary search data structures geometry implementation math Statement E Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
8941 Removal of a Sequence (Easy Version) binary search bitmasks geometry implementation math number theory Statement D1 Educational Codeforces Round 184 (Rated for Div. 2) {2169} PROGRAMMING Educational Codeforces Round 184 Editorial
6005 Blackslex and Girls constructive algorithms geometry math Statement E Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
1431 Minimum Influence binary search data structures geometry greedy implementation math sortings two pointers Statement E Educational Codeforces Round 190 (Rated for Div. 2) {2230} PROGRAMMING Educational Codeforces Round 190 — Editorial