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
6528 Ancient Berland Circus geometry math Statement C Codeforces Beta Round 1 {1} PROGRAMMING 85 2100
3871 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
384 Tetragon geometry math Statement D Codeforces Beta Round 23 {23} PROGRAMMING Codeforces Beta Round #23 tutorial 2600
1454 Sequence of points geometry implementation math Statement C Codeforces Beta Round 24 {24} PROGRAMMING Codeforces Beta Round #24 solutions 1800
109 DravDe saves the world geometry math Statement E Codeforces Beta Round 28 (Codeforces format) {28} PROGRAMMING Codeforces Round 28 - tutorial 2700
4444 Find Color constructive algorithms geometry implementation math Statement A Codeforces Beta Round 39 {40} PROGRAMMING codeforces #39 1300
137222 Ultra-Fast Mathematician implementation Statement A Codeforces Beta Round 57 (Div. 2) {61} PROGRAMMING Round 57-A 900
396 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
5016 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
430 Rotation *special geometry math Statement I Unknown Language Round 3 {100} PROGRAMMING 1700
113 Birthday geometry math Statement E Codeforces Beta Round 94 (Div. 1 Only) {128} PROGRAMMING 3219 2900
2661 Rectangle and Square brute force geometry math Statement B Codeforces Beta Round 97 (Div. 1) {135} PROGRAMMING Codeforces Beta Round #97: editorial 1600
4370 New Year Table geometry math Statement A Codeforces Round 100 {140} PROGRAMMING Codeforces Round #100: problem analysis 1700
5801 Hopscotch geometry math Statement B Codeforces Round 101 (Div. 2) {141} PROGRAMMING Codeforces Round #101 (Div. 2) Разбор Задач. 1400
8853 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
1137 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
315 Little Elephant and Triangle geometry math Statement D Codeforces Round 136 (Div. 1) {220} PROGRAMMING Codeforces Round #136 — Editorial 2500
30407 Parallelepiped brute force geometry math Statement A Codeforces Round 138 (Div. 2) {224} PROGRAMMING 1100
509 Donkey and Stars data structures dp geometry math sortings Statement D Codeforces Round 152 (Div. 1) {249} PROGRAMMING Разбор задач Codeforces Round #152 2600
4733 View Angle brute force geometry math Statement C Codeforces Round 159 (Div. 2) {257} PROGRAMMING Codeforces Round #159 (Div. 2) Разбор Задач 1700
51049 Fancy Fence geometry implementation math Statement A Codeforces Round 165 (Div. 2) {270} PROGRAMMING Разбор Codeforces Round #165 1200
261 Ksusha and Square geometry math probabilities two pointers Statement D Croc Champ 2013 - Round 2 {293} PROGRAMMING Croc Champ 2013 — Round 2 — Editorial 2700
784 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
5177 Triangle brute force geometry implementation math Statement A Codeforces Round 239 (Div. 1) {407} PROGRAMMING Codeforces Round #239 Editorial 1700
383 Roland and Rose brute force geometry math sortings Statement E Codeforces Round 262 (Div. 2) {460} PROGRAMMING 13465 2700
249 Gears brute force geometry math Statement D Codeforces Round 283 (Div. 1) {497} PROGRAMMING 2800
26744 Amr and Pins geometry math Statement B Codeforces Round 287 (Div. 2) {507} PROGRAMMING Editorial 1400
22698 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
866 Tavas and Pashmaks geometry math Statement E Codeforces Round 299 (Div. 2) {535} PROGRAMMING Codeforces Round #299 Editorial 2900
175 Sasha Circle geometry math Statement E Looksery Cup 2015 {549} PROGRAMMING Looksery Cup 2015 Editorial 3200
4862 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
10927 Gerald's Hexagon brute force geometry math Statement A Codeforces Round 313 (Div. 1) {559} PROGRAMMING Codeforces Round 313 — Extended editoral 1600
319 Sign Posts brute force geometry math Statement D Codeforces Round 315 (Div. 1) {568} PROGRAMMING Codeforces Round #315 Editorial 2800
4963 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
4760 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
2041 Chip 'n Dale Rescue Rangers binary search geometry math Statement B Codeforces Round 327 (Div. 1) {590} PROGRAMMING Codeforces Round #327 problems analysis 2100
362 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
1407 Turn geometry math Statement M Experimental Educational Round: VolBIT Formulas Blitz {630} PROGRAMMING 24160 2000
1473 Pyramids geometry math Statement Q Experimental Educational Round: VolBIT Formulas Blitz {630} PROGRAMMING Разбор задач Experimental Educational Round: VolBIT Formulas Blitz 2100
16677 Watchmen data structures geometry math Statement A Codeforces Round 345 (Div. 1) {650} PROGRAMMING Codeforces Round #345: editorial 1500
6722 Bicycle Race geometry implementation math Statement D Codeforces Round 346 (Div. 2) {659} PROGRAMMING Editorial for Codeforces Round #346 (Div. 2) 1500
8488 Pouring Rain geometry math Statement A Codeforces Round 349 (Div. 2) {667} PROGRAMMING Codeforces Round #349 Editorial 1100
38517 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
1364 Mice problem geometry implementation math sortings Statement C Tinkoff Challenge - Elimination Round {793} PROGRAMMING 51685 2200
7285 Cutting Carrot geometry math Statement B Tinkoff Challenge - Final Round (Codeforces Round 414, rated, Div. 1 + Div. 2) {794} PROGRAMMING Editorial 1300
5522 Mister B and Angle in Polygon constructive algorithms geometry math Statement B Codeforces Round 421 (Div. 2) {820} PROGRAMMING Codeforces Round #421 Editorial 1300
3399 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
5898 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
7948 Lazy Security Guard brute force geometry math Statement B MemSQL Start[c]UP 3.0 - Round 1 {859} PROGRAMMING Tutorial 1000
7219 New Year and Curling brute force geometry implementation math Statement C Good Bye 2017 {908} PROGRAMMING Good Bye 2017 Editorial 1500
1787 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
2394 Ghosts geometry math Statement D Codeforces Round 478 (Div. 2) {975} PROGRAMMING Codeforces Round #478 (Div. 2), Editorial 2000
540 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
2057 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
114 Shady Lady geometry math Statement F Bubble Cup 11 - Finals [Online Mirror, Div. 1] {1045} PROGRAMMING E 3500
18815 Cover Points geometry math Statement B Codeforces Round 511 (Div. 2) {1047} PROGRAMMING Codeforces Round #511 Editorial 900
25254 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
10949 NN and the Optical Illusion binary search geometry math Statement C Codeforces Round 532 (Div. 2) {1100} PROGRAMMING Unofficial Tutorial 1300
927 Winding polygonal line constructive algorithms geometry greedy math Statement D Codeforces Round 559 (Div. 1) {1158} PROGRAMMING 66993 2800
3965 Power Transmission (Hard Edition) data structures geometry implementation math Statement C2 Codeforces Round 558 (Div. 2) {1163} PROGRAMMING 66943 2000
1043 Geometers Anonymous Club data structures geometry math sortings Statement F Codeforces Round 574 (Div. 2) {1195} PROGRAMMING Разбор Codeforces Round #574 (Div. 2) 2700
22457 Water Lily geometry math Statement B Codeforces Round 576 (Div. 2) {1199} PROGRAMMING E 1000
10407 White Sheet geometry math Statement C Codeforces Round 587 (Div. 3) {1216} PROGRAMMING Codeforces Round #587 (Div. 3) Editorial 1500
15121 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
1601 Point Ordering constructive algorithms geometry interactive math Statement C Codeforces Round 601 (Div. 1) {1254} PROGRAMMING Codeforces Round #601 Editorial 2300
2750 Divide Points constructive algorithms geometry math Statement E Good Bye 2019 {1270} PROGRAMMING Разбор Goodbye 2019 2300
1385 New Year and Castle Construction combinatorics geometry math sortings Statement E Hello 2020 {1284} PROGRAMMING Hello 2020 Editorial 2500
13869 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
27582 Two Regular Polygons geometry math number theory Statement A Educational Codeforces Round 83 (Rated for Div. 2) {1312} PROGRAMMING 74640
16370 Simple Polygon Embedding binary search geometry math ternary search Statement C1 Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 1400
6378 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
584 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
39203 FashionabLee geometry math Statement A Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 500.0 Codeforces Round #652 (Div. 2) Editorial 800
278 Cubic Lattice geometry math matrices number theory Statement I Codeforces Global Round 9 {1375} PROGRAMMING 4000.0 79731
278 Origami geometry math sortings Statement E Codeforces Round 658 (Div. 1) {1381} PROGRAMMING 3000.0 Codeforces Round #658 Editorial 3300
141 Mixture *special data structures geometry math sortings Statement B Baltic Olympiad in Informatics 2020, Day 1 (IOI, Unofficial Mirror Contest, Unrated) {1386} PROGRAMMING T
28833 Bad Triangle geometry math Statement A Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
21888 Fence geometry math Statement A Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 500.0 Codeforces Round #675 (Div. 2) Editorial
10170 Circle Game games geometry math Statement D Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 1750.0 Editorial — Codeforces Round #685
1652 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
17923 Diamond Miner geometry greedy math sortings Statement A Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 500.0 Codeforces Round #706 Editorial
27142 Phoenix and Puzzle geometry math Statement B Codeforces Global Round 14 {1515} PROGRAMMING 1000.0 Editorial
5232 Gift Set binary search geometry greedy math ternary search Statement G Codeforces Round 725 (Div. 3) {1538} PROGRAMMING Codeforces Round #725 (Div. 3) Editorial
21565 Contest Start combinatorics geometry math Statement A Codeforces Round 727 (Div. 2) {1539} PROGRAMMING 500.0 tutorial 1000
283 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
1625 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
409 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
13231 Representative Edges brute force geometry implementation math Statement C Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 1500.0 Good Bye 2021 -- Editorial 1500
32055 Triangles on a Rectangle geometry greedy math Statement B Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
19080 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
153 Global Warming geometry math Statement G 2021-2022 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1666} PROGRAMMING
5666 Very Suspicious binary search brute force geometry implementation math Statement D Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 2250.0 Tutorial 1700
593 Crop Squares constructive algorithms geometry interactive math Statement F Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 3000.0 Codeforces Round #816 (Div. 2) editorial
106 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
3158 Doremy's Pegging Game combinatorics geometry math Statement D Codeforces Global Round 24 {1764} PROGRAMMING 1750.0 Codeforces Global Round 24 Editorial
52954 Following Directions geometry implementation Statement B Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
1410 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
14220 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)
44593 Walking Master geometry greedy math Statement A Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 500.0 Codeforces Round #858 (Div. 2) Editorial
460 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
23846 Come Together geometry implementation math Statement B Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
22587 Rudolph and Christmas Tree constructive algorithms geometry math Statement D Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
35625 Cardboard for Pictures binary search geometry implementation math Statement E Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
15564 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
26270 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
18083 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
1386 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
24468 Rectangle Cutting constructive algorithms geometry greedy math Statement A Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 500.0 Codeforces Round 924 Editorial
8122 Find a Mine constructive algorithms geometry greedy interactive math Statement C Codeforces Round 931 (Div. 2) {1934} PROGRAMMING 1500.0 Tutorial
6918 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
12472 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
12568 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
4410 Field Division (easy version) data structures geometry math sortings Statement F1 Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
17784 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
18897 Satyam and Counting geometry math Statement D Codeforces Round 971 (Div. 4) {2009} PROGRAMMING Codeforces Round 971 (Div. 4) Editorial
20352 Perpendicular Segments brute force geometry math Statement A Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING Educational Codeforces Round 171 Editorial
22062 Rectangle Arrangement geometry implementation math Statement A Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 500.0 Codeforces Round #982 (Div. 2) Editorial
21294 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
14765 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
615 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
12372 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
6719 Empty Triangle geometry interactive probabilities Statement E Codeforces Round 1009 (Div. 3) {2074} PROGRAMMING Codeforces Round 1009 (Div. 3) — Editorial
1029 Bermuda Triangle chinese remainder theorem constructive algorithms geometry math number theory Statement C Codeforces Round 1021 (Div. 1) {2097} PROGRAMMING 1500.0 142316
18448 Line Segments geometry greedy math Statement B Codeforces Round 1035 (Div. 2) {2119} PROGRAMMING 1000.0 Codeforces Round 1035 (Div. 2) Editorial
20439 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
9225 khba Loves to Sleep! binary search data structures geometry implementation math Statement E Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
8698 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
5874 Blackslex and Girls constructive algorithms geometry math Statement E Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial
1135 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