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
6447 Ancient Berland Circus geometry math Statement C Codeforces Beta Round 1 {1} PROGRAMMING 85 2100
3842 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
378 Tetragon geometry math Statement D Codeforces Beta Round 23 {23} PROGRAMMING Codeforces Beta Round #23 tutorial 2600
1438 Sequence of points geometry implementation math Statement C Codeforces Beta Round 24 {24} PROGRAMMING Codeforces Beta Round #24 solutions 1800
107 DravDe saves the world geometry math Statement E Codeforces Beta Round 28 (Codeforces format) {28} PROGRAMMING Codeforces Round 28 - tutorial 2700
4421 Find Color constructive algorithms geometry implementation math Statement A Codeforces Beta Round 39 {40} PROGRAMMING codeforces #39 1300
135534 Ultra-Fast Mathematician implementation Statement A Codeforces Beta Round 57 (Div. 2) {61} PROGRAMMING Round 57-A 900
371 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
4989 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
2640 Rectangle and Square brute force geometry math Statement B Codeforces Beta Round 97 (Div. 1) {135} PROGRAMMING Codeforces Beta Round #97: editorial 1600
4360 New Year Table geometry math Statement A Codeforces Round 100 {140} PROGRAMMING Codeforces Round #100: problem analysis 1700
5779 Hopscotch geometry math Statement B Codeforces Round 101 (Div. 2) {141} PROGRAMMING Codeforces Round #101 (Div. 2) Разбор Задач. 1400
8757 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
1134 Analyzing Polyline geometry math sortings Statement D Codeforces Round 123 (Div. 2) {195} PROGRAMMING Codeforces Round #123 (Div. 2) Разбор Задач 1900
1507 Hit Ball geometry implementation math Statement D Codeforces Round 128 (Div. 2) {203} PROGRAMMING 1700
313 Little Elephant and Triangle geometry math Statement D Codeforces Round 136 (Div. 1) {220} PROGRAMMING Codeforces Round #136 — Editorial 2500
30222 Parallelepiped brute force geometry math Statement A Codeforces Round 138 (Div. 2) {224} PROGRAMMING 1100
508 Donkey and Stars data structures dp geometry math sortings Statement D Codeforces Round 152 (Div. 1) {249} PROGRAMMING Разбор задач Codeforces Round #152 2600
4703 View Angle brute force geometry math Statement C Codeforces Round 159 (Div. 2) {257} PROGRAMMING Codeforces Round #159 (Div. 2) Разбор Задач 1700
50690 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
782 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
5165 Triangle brute force geometry implementation math Statement A Codeforces Round 239 (Div. 1) {407} PROGRAMMING Codeforces Round #239 Editorial 1700
381 Roland and Rose brute force geometry math sortings Statement E Codeforces Round 262 (Div. 2) {460} PROGRAMMING 13465 2700
247 Gears brute force geometry math Statement D Codeforces Round 283 (Div. 1) {497} PROGRAMMING 2800
26644 Amr and Pins geometry math Statement B Codeforces Round 287 (Div. 2) {507} PROGRAMMING Editorial 1400
22588 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
863 Tavas and Pashmaks geometry math Statement E Codeforces Round 299 (Div. 2) {535} PROGRAMMING Codeforces Round #299 Editorial 2900
174 Sasha Circle geometry math Statement E Looksery Cup 2015 {549} PROGRAMMING Looksery Cup 2015 Editorial 3200
4839 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
10886 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
4948 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
4668 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
2024 Chip 'n Dale Rescue Rangers binary search geometry math Statement B Codeforces Round 327 (Div. 1) {590} PROGRAMMING Codeforces Round #327 problems analysis 2100
358 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
1397 Turn geometry math Statement M Experimental Educational Round: VolBIT Formulas Blitz {630} PROGRAMMING 24160 2000
1456 Pyramids geometry math Statement Q Experimental Educational Round: VolBIT Formulas Blitz {630} PROGRAMMING Разбор задач Experimental Educational Round: VolBIT Formulas Blitz 2100
16618 Watchmen data structures geometry math Statement A Codeforces Round 345 (Div. 1) {650} PROGRAMMING Codeforces Round #345: editorial 1500
6690 Bicycle Race geometry implementation math Statement D Codeforces Round 346 (Div. 2) {659} PROGRAMMING Editorial for Codeforces Round #346 (Div. 2) 1500
8457 Pouring Rain geometry math Statement A Codeforces Round 349 (Div. 2) {667} PROGRAMMING Codeforces Round #349 Editorial 1100
38252 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
1354 Mice problem geometry implementation math sortings Statement C Tinkoff Challenge - Elimination Round {793} PROGRAMMING 51685 2200
7248 Cutting Carrot geometry math Statement B Tinkoff Challenge - Final Round (Codeforces Round 414, rated, Div. 1 + Div. 2) {794} PROGRAMMING Editorial 1300
5496 Mister B and Angle in Polygon constructive algorithms geometry math Statement B Codeforces Round 421 (Div. 2) {820} PROGRAMMING Codeforces Round #421 Editorial 1300
3375 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
5885 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
7895 Lazy Security Guard brute force geometry math Statement B MemSQL Start[c]UP 3.0 - Round 1 {859} PROGRAMMING Tutorial 1000
7197 New Year and Curling brute force geometry implementation math Statement C Good Bye 2017 {908} PROGRAMMING Good Bye 2017 Editorial 1500
1776 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
2387 Ghosts geometry math Statement D Codeforces Round 478 (Div. 2) {975} PROGRAMMING Codeforces Round #478 (Div. 2), Editorial 2000
536 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
2049 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
113 Shady Lady geometry math Statement F Bubble Cup 11 - Finals [Online Mirror, Div. 1] {1045} PROGRAMMING E 3500
18764 Cover Points geometry math Statement B Codeforces Round 511 (Div. 2) {1047} PROGRAMMING Codeforces Round #511 Editorial 900
25073 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
10858 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
3947 Power Transmission (Hard Edition) data structures geometry implementation math Statement C2 Codeforces Round 558 (Div. 2) {1163} PROGRAMMING 66943 2000
1035 Geometers Anonymous Club data structures geometry math sortings Statement F Codeforces Round 574 (Div. 2) {1195} PROGRAMMING Разбор Codeforces Round #574 (Div. 2) 2700
22368 Water Lily geometry math Statement B Codeforces Round 576 (Div. 2) {1199} PROGRAMMING E 1000
10332 White Sheet geometry math Statement C Codeforces Round 587 (Div. 3) {1216} PROGRAMMING Codeforces Round #587 (Div. 3) Editorial 1500
15025 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
1591 Point Ordering constructive algorithms geometry interactive math Statement C Codeforces Round 601 (Div. 1) {1254} PROGRAMMING Codeforces Round #601 Editorial 2300
2725 Divide Points constructive algorithms geometry math Statement E Good Bye 2019 {1270} PROGRAMMING Разбор Goodbye 2019 2300
1377 New Year and Castle Construction combinatorics geometry math sortings Statement E Hello 2020 {1284} PROGRAMMING Hello 2020 Editorial 2500
13848 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
27516 Two Regular Polygons geometry math number theory Statement A Educational Codeforces Round 83 (Rated for Div. 2) {1312} PROGRAMMING 74640
16354 Simple Polygon Embedding binary search geometry math ternary search Statement C1 Educational Codeforces Round 87 (Rated for Div. 2) {1354} PROGRAMMING 77593 1400
6368 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
583 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
39078 FashionabLee geometry math Statement A Codeforces Round 652 (Div. 2) {1369} PROGRAMMING 500.0 Codeforces Round #652 (Div. 2) Editorial 800
277 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
28747 Bad Triangle geometry math Statement A Educational Codeforces Round 93 (Rated for Div. 2) {1398} PROGRAMMING Educational Codeforces Round 93 Editorial
21864 Fence geometry math Statement A Codeforces Round 675 (Div. 2) {1422} PROGRAMMING 500.0 Codeforces Round #675 (Div. 2) Editorial
10136 Circle Game games geometry math Statement D Codeforces Round 685 (Div. 2) {1451} PROGRAMMING 1750.0 Editorial — Codeforces Round #685
1643 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
17867 Diamond Miner geometry greedy math sortings Statement A Codeforces Round 706 (Div. 1) {1495} PROGRAMMING 500.0 Codeforces Round #706 Editorial
26952 Phoenix and Puzzle geometry math Statement B Codeforces Global Round 14 {1515} PROGRAMMING 1000.0 Editorial
5192 Gift Set binary search geometry greedy math ternary search Statement G Codeforces Round 725 (Div. 3) {1538} PROGRAMMING Codeforces Round #725 (Div. 3) Editorial
21506 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
1621 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
408 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
13187 Representative Edges brute force geometry implementation math Statement C Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 1500.0 Good Bye 2021 -- Editorial 1500
31237 Triangles on a Rectangle geometry greedy math Statement B Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
18633 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
5599 Very Suspicious binary search brute force geometry implementation math Statement D Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 2250.0 Tutorial 1700
588 Crop Squares constructive algorithms geometry interactive math Statement F Codeforces Round 816 (Div. 2) {1715} PROGRAMMING 3000.0 Codeforces Round #816 (Div. 2) editorial
105 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
3135 Doremy's Pegging Game combinatorics geometry math Statement D Codeforces Global Round 24 {1764} PROGRAMMING 1750.0 Codeforces Global Round 24 Editorial
52486 Following Directions geometry implementation Statement B Codeforces Round 849 (Div. 4) {1791} PROGRAMMING 112282
1399 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
14148 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)
42992 Walking Master geometry greedy math Statement A Codeforces Round 858 (Div. 2) {1806} PROGRAMMING 500.0 Codeforces Round #858 (Div. 2) Editorial
456 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
23596 Come Together geometry implementation math Statement B Educational Codeforces Round 151 (Rated for Div. 2) {1845} PROGRAMMING 117791
22392 Rudolph and Christmas Tree constructive algorithms geometry math Statement D Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
34755 Cardboard for Pictures binary search geometry implementation math Statement E Codeforces Round 886 (Div. 4) {1850} PROGRAMMING Codeforces Round #886 (Div. 4) Editorial
15373 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
25493 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
17985 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
65 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
1371 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
24396 Rectangle Cutting constructive algorithms geometry greedy math Statement A Codeforces Round 924 (Div. 2) {1928} PROGRAMMING 500.0 Codeforces Round 924 Editorial
8057 Find a Mine constructive algorithms geometry greedy interactive math Statement C Codeforces Round 931 (Div. 2) {1934} PROGRAMMING 1500.0 Tutorial
6861 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
12407 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
12422 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
4380 Field Division (easy version) data structures geometry math sortings Statement F1 Codeforces Round 950 (Div. 3) {1980} PROGRAMMING 130135
17655 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
18699 Satyam and Counting geometry math Statement D Codeforces Round 971 (Div. 4) {2009} PROGRAMMING Codeforces Round 971 (Div. 4) Editorial
20224 Perpendicular Segments brute force geometry math Statement A Educational Codeforces Round 171 (Rated for Div. 2) {2026} PROGRAMMING Educational Codeforces Round 171 Editorial
22010 Rectangle Arrangement geometry implementation math Statement A Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 500.0 Codeforces Round #982 (Div. 2) Editorial
21240 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
89 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
14621 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
610 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
12206 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
6623 Empty Triangle geometry interactive probabilities Statement E Codeforces Round 1009 (Div. 3) {2074} PROGRAMMING Codeforces Round 1009 (Div. 3) — 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
18170 Line Segments geometry greedy math Statement B Codeforces Round 1035 (Div. 2) {2119} PROGRAMMING 1000.0 Codeforces Round 1035 (Div. 2) Editorial
20209 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
8987 khba Loves to Sleep! binary search data structures geometry implementation math Statement E Codeforces Round 1062 (Div. 4) {2167} PROGRAMMING Arpa Video Tutorial
8453 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
5719 Blackslex and Girls constructive algorithms geometry math Statement E Codeforces Round 1071 (Div. 3) {2179} PROGRAMMING Codeforces Round 1071 (Div. 3) Editorial