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.

Get exact match for tags using this format, eg: [u'brute force', 'dp']

< 1 2 3 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
517 Wardrobe Statement E VK Cup 2018 - Round 2 {924} PROGRAMMING 2600
1887 Is This a Zebra? Statement C VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 1600
1481 Large Bouquets Statement G VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 1700
1713 Add Points Statement B VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 1800
934 Choose Place Statement D VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 1800
666 A Vital Problem Statement I VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 1900
931 Merge Equal Elements Statement E VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING 2100
219 Endless Roses Most Beautiful Statement H VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 2300
235 Mobile Communications Statement F VK Cup 2018 - Wild-card Round 1 {926} PROGRAMMING Разбор VK Cup 2018 — Уайлд-кард Раунд 1 2400
1 BuberPool Taxi Optimization Statement A VK Cup 2018 - Wild-card Round 2 {927} PROGRAMMING 2800
152 Пограничные врата Statement D VK Cup 2018 - Квалификация 2 {929} PROGRAMMING 2600
642 Cheese Board Statement E April Fools Contest 2018 {952} PROGRAMMING April Fools Day Contest 2018: editorial 2200
397 2 + 2 != 4 Statement F April Fools Contest 2018 {952} PROGRAMMING April Fools Day Contest 2018: editorial 2700
95 Icicles Statement E Codeforces Round 471 (Div. 2) {955} PROGRAMMING 2900
88 Hyperspace Jump (hard) Statement D2 Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) {958} PROGRAMMING 3000
46 Death Stars (hard) Statement A3 Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) {958} PROGRAMMING 3100
60 The Moral Dilemma Statement F Codeforces Round 488 by NEAR (Div. 1) {993} PROGRAMMING Codeforces Round #488 editorial 3100
845 Generate superposition of all basis states Statement A1 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 1900
559 Generate superposition of zero state and a basis state Statement A2 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 1900
476 Generate superposition of two basis states Statement A3 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 1900
478 Distinguish zero state and W state Statement B1 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2000
446 Distinguish GHZ state and W state Statement B2 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2100
411 Distinguish four 2-qubit states Statement B3 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2100
404 Oracle for f(x) = b * x mod 2 Statement D1 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2100
381 Oracle for f(x) = b * x + (1 - b) * (1 - x) mod 2 Statement D2 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2100
322 Bernstein-Vazirani algorithm Statement E1 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2100
309 Distinguish four 2-qubit states - 2 Statement B4 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2200
333 Oracle for majority function Statement D3 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2200
302 Distinguish zero state and plus state with minimum error Statement C1 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2300
267 Generate W state Statement A4 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2400
267 Distinguish zero state and plus state without errors Statement C2 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2400
203 Another array reconstruction algorithm Statement E2 Microsoft Q# Coding Contest - Summer 2018 {1002} PROGRAMMING Editorial 2400
3925 Curiosity Has No Limits Statement B Technocup 2019 - Elimination Round 2 {1031} PROGRAMMING Codeforces Round #517 and Technocup 2019 Elimination Round 2 Editorial 1500
6872 Kitchen Utensils Statement A Technocup 2019 - Elimination Round 3 {1032} PROGRAMMING Codeforces Round #522 and Technocup 2019 Elimination Round 3 Editorial 1100
5002 Personalized Cup Statement B Technocup 2019 - Elimination Round 3 {1032} PROGRAMMING Codeforces Round #522 and Technocup 2019 Elimination Round 3 Editorial 1300
466 Chattering Statement G Technocup 2019 - Elimination Round 3 {1032} PROGRAMMING Codeforces Round #522 and Technocup 2019 Elimination Round 3 Editorial 2700
82 Jellyfish Nightmare Statement G Mail.Ru Cup 2018 Round 2 {1055} PROGRAMMING Mail.Ru Cup 2018 Round 2 — analysis 3100
17681 Good Array Statement C Codeforces Round 521 (Div. 3) {1077} PROGRAMMING Codeforces Round #521 (Div. 3) Editorial 1400
617 Rock-Paper-Scissors Champion Statement F Technocup 2019 - Elimination Round 4 {1085} PROGRAMMING Technocup 2019 — Elimination Round 4 + Codeforces Round 528: editorial 2700
4023 Lazyland Statement L 2018-2019 ICPC, NEERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1089} PROGRAMMING T 1200
382 Interval-Free Permutations Statement I 2018-2019 ICPC, NEERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1089} PROGRAMMING T 2800
1432 LaTeX Expert Statement B 2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1090} PROGRAMMING 2000
1071 Minimal Product Statement I 2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1090} PROGRAMMING 2200
606 Horseback Riding Statement E 2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1090} PROGRAMMING 2400
504 New Year Presents Statement C 2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1090} PROGRAMMING 2500
99 Linearization Statement H 2018-2019 Russia Open High School Programming Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1090} PROGRAMMING 3000
323 Generate state |00⟩ + |01⟩ + |10⟩ Statement A1 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
180 Generate equal superposition of four basis states Statement A2 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
133 Distinguish three-qubit states Statement B1 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
59 Not A, not B or not C? Statement B2 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
264 Alternating bits oracle Statement C1 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
186 "Is the bit string periodic?" oracle Statement C2 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
184 "Is the number of ones divisible by 3?" oracle Statement C3 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
275 Block diagonal matrix Statement D1 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
233 Pattern of increasing blocks Statement D2 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
203 X-wing fighter Statement D3 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
169 TIE fighter Statement D4 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
149 Creeper Statement D5 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
79 Hessenberg matrix Statement D6 Microsoft Q# Coding Contest - Winter 2019 {1116} PROGRAMMING Contest editorial
429 Fourier Doodles Statement E April Fools Day Contest 2019 {1145} PROGRAMMING 66327
514 Neat Words Statement F April Fools Day Contest 2019 {1145} PROGRAMMING 66327
177 AI Takeover Statement G April Fools Day Contest 2019 {1145} PROGRAMMING
41 Heidi and the Turing Test (Hard) Statement C3 Helvetic Coding Contest 2019 online mirror (teams allowed, unrated) {1184} PROGRAMMING helvetic-coding-contest-2019-editorial.pdf 3200
179 Cursor Distance Statement F Codeforces Round 596 (Div. 1, based on Technocup 2020 Elimination Round 2) {1246} PROGRAMMING Tutorial 3400
5659 Copying Homework Statement A 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1252} PROGRAMMING T 1000
31 Mission Possible Statement I 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) {1252} PROGRAMMING T 3200
4064 Balls of Buma Statement B 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1267} PROGRAMMING nerc-2019-tutorial.pdf 1300
1019 Apprentice Learning Trajectory Statement A 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1267} PROGRAMMING 2500
11812 MEX maximizing data structures greedy implementation math Statement D Codeforces Round 615 (Div. 3) {1294} PROGRAMMING Codeforces Round #615 (Div. 3) Editorial 1600
297 Nash equilibrium Statement A AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
96 Dijkstra Statement D AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
46 Amazing bitset Statement E AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
23 Keep talking and nobody explodes -- medium Statement G AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
8 Who needs suffix structures? Statement H AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
4 Deja vu Statement I AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
10 Keep talking and nobody explodes -- hard Statement J AIM Tech Poorly Prepared Contest (unrated, funny, Div. 1 preferred) {1302} PROGRAMMING 73599
161 Blocks and Sensors Statement F Codeforces Round 625 (Div. 1, based on Technocup 2020 Final Round) {1320} PROGRAMMING 2500.0 Codeforces Round #625 Editorial
14345 Contest for Robots Statement A Codeforces Round 625 (Div. 2, based on Technocup 2020 Final Round) {1321} PROGRAMMING 500.0 Codeforces Round #625 Editorial
17119 Is it rated? Statement A April Fools Day Contest 2020 {1331} PROGRAMMING April Fools Day Contest 2020: editorial
505 Lingua Romana Statement G April Fools Day Contest 2020 {1331} PROGRAMMING April Fools Day Contest 2020: editorial
626 It's showtime Statement H April Fools Day Contest 2020 {1331} PROGRAMMING April Fools Day Contest 2020: editorial
10895 Three Blocks Palindrome (easy version) binary search brute force data structures dp two pointers Statement E1 Codeforces Round 634 (Div. 3) {1335} PROGRAMMING 75993 1700
8388 Three Blocks Palindrome (hard version) brute force data structures dp two pointers Statement E2 Codeforces Round 634 (Div. 3) {1335} PROGRAMMING 75993 2000
632 Figure out direction of CNOT Statement A1 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
511 Distinguish I, CNOTs and SWAP Statement A2 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
479 Distinguish H from X Statement A3 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
352 Distinguish Rz from R1 Statement A4 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
241 Distinguish Rz(θ) from Ry(θ) Statement A5 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
168 Distinguish four Pauli gates Statement A6 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
183 Distinguish Y, XZ, -Y and -XZ Statement A7 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
214 "Is the bit string balanced?" oracle Statement B1 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
214 "Is the number divisible by 3?" oracle Statement B2 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
348 Prepare superposition of basis states with 0s Statement C1 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
304 Prepare superposition of basis states with the same parity Statement C2 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
125 Quantum Classification - Dataset 3 Statement D1 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
112 Quantum Classification - Dataset 4 Statement D2 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
105 Quantum Classification - Dataset 5 Statement D3 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
85 Quantum Classification - Dataset 6 Statement D4 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
82 Quantum Classification - Dataset 7 Statement D5 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial
193 Power of quantum Fourier transform Statement E1 Microsoft Q# Coding Contest - Summer 2020 {1357} PROGRAMMING Microsoft Q# Coding Contest – Summer 2020: editorial