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 >

Solved
Name
Tags
Solutions
Index
Contest
Type
Points
Tutorial
Rating Level
4197 Looking for Order bitmasks dp Statement C Codeforces Beta Round 8 {8} PROGRAMMING Codeforces Beta Round #8 Tutorial 2000
6343 A Simple Task bitmasks dp graphs Statement D Codeforces Beta Round 11 {11} PROGRAMMING 2200
6504 Fish bitmasks dp probabilities Statement E Codeforces Beta Round 16 (Div. 2 Only) {16} PROGRAMMING Codeforces Beta Round #16 Tutorial 2100
1280 Traveling Graph bitmasks graph matchings graphs Statement D Codeforces Alpha Round 21 (Codeforces format) {21} PROGRAMMING 2500
1272 Dead Ends bitmasks dp Statement E Codeforces Beta Round 49 (Div. 2) {53} PROGRAMMING Tutorial for problems of Codeforces Beta Round #49 (Div.2). All problems now. 2500
853 Sweets Game bitmasks dfs and similar dp games implementation Statement E Codeforces Beta Round 59 (Div. 2) {63} PROGRAMMING Разбор задач Codeforces Round #59 (Div. 2) 2200
940 Nuclear Fusion bitmasks dp Statement E Codeforces Beta Round 65 (Div. 2) {71} PROGRAMMING Разбор задач Codeforces Beta Round #65 (Div. 2) 2200
369 Mutation bitmasks dp math Statement C All-Ukrainian School Olympiad in Informatics {76} PROGRAMMING All-Ukrainian School Olympiad in Informatics: editorial (A,B,C,D,E,F) 2700
1338 Password bitmasks dp shortest paths Statement D Codeforces Beta Round 71 {79} PROGRAMMING Codeforces Beta Round #71 - разбор (перевод A-D) 2700
536 Two Subsequences bitmasks dp Statement E Codeforces Beta Round 72 (Div. 1 Only) {83} PROGRAMMING разбор E 2800
458 Arrangement bitmasks dp Statement C Codeforces Beta Round 83 (Div. 1 Only) {107} PROGRAMMING Tutorial 2500
1580 Petya and Spiders bitmasks dp dsu Statement C Codeforces Beta Round 85 (Div. 1 Only) {111} PROGRAMMING Codeforces Beta Round #85: Разбор задач 2100
565 Garden bitmasks dp graphs trees Statement E Codeforces Round 108 (Div. 2) {152} PROGRAMMING Разбор задач Codeforces Round #108 (Div. 2) 2400
9316 Compatible Numbers bitmasks brute force dfs and similar dp Statement E Codeforces Round 112 (Div. 2) {165} PROGRAMMING Codeforces Round #112 (Div. 2) Tutorial 2100
452 Brand New Problem bitmasks brute force dp Statement D Codeforces Round 127 (Div. 1) {201} PROGRAMMING 2500
1651 Table bitmasks combinatorics dp math Statement B Codeforces Round 144 (Div. 1) {232} PROGRAMMING Editorial for Codeforces Round #144 2200
881 Quick Tortoise bitmasks divide and conquer dp Statement E Codeforces Round 144 (Div. 1) {232} PROGRAMMING Editorial for Codeforces Round #144 2900
16293 Little Girl and Maximum XOR bitmasks dp greedy implementation math Statement D Codeforces Round 169 (Div. 2) {276} PROGRAMMING Codeforces Round #169 — Unofficial Editorial 1800
851 The Minimum Number of Variables bitmasks dp Statement D Codeforces Round 171 (Div. 2) {279} PROGRAMMING Unofficial editorial for Codeforces Round #171 (Div. 2) 2600
1671 Permutation Sum bitmasks combinatorics dp implementation meet-in-the-middle Statement D Codeforces Round 175 (Div. 2) {285} PROGRAMMING Codeforces Round #175 (Div. 2) Tutorial 1900
1575 Axis Walking bitmasks combinatorics constructive algorithms dp meet-in-the-middle Statement E Codeforces Round 191 (Div. 2) {327} PROGRAMMING Codeforces Round #191 — Tutorial 2500
126 Vasily the Bear and Painting Square bitmasks combinatorics dp implementation Statement E Codeforces Round 195 (Div. 2) {336} PROGRAMMING Tutorial Codeforces Round #195 (Div. 2) 2600
565 Xenia and Dominoes bitmasks dfs and similar dp Statement D Codeforces Round 199 (Div. 2) {342} PROGRAMMING Tutorial 2500
502 Game with Strings bitmasks dp games Statement B Codeforces Round 206 (Div. 1) {354} PROGRAMMING Codeforces Round #206 — Editorial 2500
1088 Bags and Coins bitmasks constructive algorithms dp greedy Statement D Codeforces Round 207 (Div. 1) {356} PROGRAMMING 9210 2500
1243 Captains Mode bitmasks dp games Statement C Codeforces Round 222 (Div. 1) {377} PROGRAMMING Codeforces Round #222 — Problem Analysis 2400
1662 New Year Letter bitmasks brute force dp Statement D Good Bye 2013 {379} PROGRAMMING Tutorial Good Bye 2013 2000
942 Bear and Floodlight bitmasks dp geometry Statement D Codeforces Round 226 (Div. 2) {385} PROGRAMMING Codeforces Round #226 (Div. 2) — Editorial 2500
4555 Roman and Numbers bitmasks brute force combinatorics dp number theory Statement D Codeforces Round 235 (Div. 2) {401} PROGRAMMING Codeforces Round #235 (Div. 2) — Tutorial 2000
906 2048 bitmasks dp Statement D Coder-Strike 2014 - Round 2 {413} PROGRAMMING Editorial of Coder-Strike 2014 Round 2 2100
2905 Cunning Gena bitmasks dp greedy sortings Statement D RCC 2014 Warmup (Div. 2) {417} PROGRAMMING 2000
1029 Guess the Tree bitmasks constructive algorithms dp greedy trees Statement C Codeforces Round 245 (Div. 1) {429} PROGRAMMING Codeforces Round #245 — Editorial 2400
2871 Random Task binary search bitmasks combinatorics dp math Statement D Codeforces Round 247 (Div. 2) {431} PROGRAMMING Editorial Codeforces Round #247 (Div. 2) 2200
815 Valera and Number bitmasks dp math probabilities Statement E Codeforces Round 252 (Div. 2) {441} PROGRAMMING Разбор Codeforces Round #252 (Div. 2) 2700
6101 Jzzhu and Numbers bitmasks combinatorics dp Statement D Codeforces Round 257 (Div. 1) {449} PROGRAMMING Codeforces Round #257 Editorial 2400
5367 Little Pony and Harmony Chest bitmasks brute force dp Statement B Codeforces Round 259 (Div. 1) {453} PROGRAMMING Codeforces Round #259 Editorial 2200
36817 Dreamoon and WiFi bitmasks brute force combinatorics dp math probabilities Statement B Codeforces Round 272 (Div. 2) {476} PROGRAMMING 1300
991 Game with Strings bitmasks dp probabilities Statement C Codeforces Round 275 (Div. 1) {482} PROGRAMMING Codeforces Round #275 Editorial 2800
6394 Fox And Jumping bitmasks brute force dp math Statement D Codeforces Round 290 (Div. 2) {510} PROGRAMMING Codeforces Round #290 Editorial 2100
4157 Anya and Cubes binary search bitmasks brute force dp math meet-in-the-middle Statement E Codeforces Round 297 (Div. 2) {525} PROGRAMMING Codeforces Round #297 (Div.2) Editorial 2200
530 Simplified Nonogram bitmasks dp hashing meet-in-the-middle Statement F Codeforces Round 298 (Div. 2) {534} PROGRAMMING 2900
25713 Tavas and SaDDas bitmasks brute force combinatorics implementation Statement B Codeforces Round 299 (Div. 2) {535} PROGRAMMING Codeforces Round #299 Editorial 1100
1552 Remembering Strings bitmasks dp Statement C Codeforces Round 302 (Div. 1) {543} PROGRAMMING Editorial Codeforces Round #302 2600
3383 Mike and Foam bitmasks combinatorics dp math number theory Statement C Codeforces Round 305 (Div. 1) {547} PROGRAMMING Codeforces Round #305 Editorial 2700
11769 Kefa and Dishes bitmasks dp Statement D Codeforces Round 321 (Div. 2) {580} PROGRAMMING Codeforces Round #321 Editorial 1900
546 Boolean Function bitmasks dp expression parsing Statement E Codeforces Round 323 (Div. 1) {582} PROGRAMMING Codeforces Round #323 Editorial 2900
760 Sandy and Nuts bitmasks dp trees Statement E Codeforces Round 332 (Div. 2) {599} PROGRAMMING Editorial Codeforces Round #332 (Div. 2) 2100
2422 Binary Table bitmasks brute force divide and conquer dp fft math Statement C CROC 2016 - Final Round [Private, For Onsite Finalists Only] {662} PROGRAMMING Editorial for CROC 2016 Finals and Codeforces Round #347 2800
2716 Another Sith Tournament bitmasks dp Statement E Educational Codeforces Round 13 {678} PROGRAMMING Editorial 2200
1439 LRU bitmasks dp math probabilities Statement C Codeforces Round 363 (Div. 1) {698} PROGRAMMING Solution 2700
1626 Vladik and cards binary search bitmasks brute force dp Statement E Codeforces Round 384 (Div. 2) {743} PROGRAMMING Codeforces Round #384 Editorial 2300
1300 Hongcow Buys a Deck of Cards bitmasks brute force dp Statement C Codeforces Round 385 (Div. 1) {744} PROGRAMMING Codeforces Round #385 Editorial 2500
525 New Year and Binary Tree Paths bitmasks brute force combinatorics dp Statement G Good Bye 2016 {750} PROGRAMMING Good Bye 2016 — hints and codes 3100
1850 PolandBall and Gifts bitmasks dp greedy Statement F 8VC Venture Cup 2017 - Elimination Round {755} PROGRAMMING 8VC Venture Cup 2017 — Elimination Round [Editorial] 2600
1543 Felicity's Big Secret Revealed bitmasks dp Statement D Codecraft-17 and Codeforces Round 391 (Div. 1 + Div. 2, combined) {757} PROGRAMMING CodeCraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) Editorial 2200
3453 Mahmoud and a xor trip bitmasks constructive algorithms data structures dfs and similar dp math trees Statement E Codeforces Round 396 (Div. 2) {766} PROGRAMMING Codeforces round #396 editorial 2200
3486 Game of Stones bitmasks dp games Statement E Divide by Zero 2017 and Codeforces Round 399 (Div. 1 + Div. 2, combined) {768} PROGRAMMING Editorial Divide by Zero and Codeforces Round #399 (Div. 1+2, combined) 2000
748 Varying Kibibits bitmasks dp Statement D VK Cup 2017 - Round 2 {772} PROGRAMMING VK Cup Round 2 + Codeforces Round #409 Tutorial 2700
367 Sherlock and the Encrypted Data bitmasks combinatorics dp Statement G ICM Technex 2017 and Codeforces Round 400 (Div. 1 + Div. 2, combined) {776} PROGRAMMING ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined) Editorial 2800
1262 Axel and Marston in Bitland bitmasks dp graphs matrices Statement F Технокубок 2017 - Финал (только для онсайт-финалистов) {780} PROGRAMMING Technocup 2017 Finals and Codeforces Round #403 Editorial 2800
5511 Sagheer, the Hausmeister bitmasks brute force dp Statement B Codeforces Round 417 (Div. 2) {812} PROGRAMMING [Editorial] Codeforces Round #417 (Div. 2) 1600
627 Guards In The Storehouse bitmasks dp Statement F Educational Codeforces Round 27 {845} PROGRAMMING 53986 2600
1854 Arpa and a game with Mojtaba bitmasks dp games Statement C Codeforces Round 432 (Div. 1, based on IndiaHacks Final Round 2017) {850} PROGRAMMING Codeforces Round #432 editorial 2400
2126 Salazar Slytherin's Locket bitmasks dp Statement E Manthan, Codefest 17 {855} PROGRAMMING 54750 2200
157 Hex Dyslexia bitmasks brute force dp graphs Statement E MemSQL Start[c]UP 3.0 - Round 2 (onsite finalists) {865} PROGRAMMING MemSQL Start[c]UP 3.0 Round 2 Editorial 2700
5016 Qualification Rounds bitmasks brute force constructive algorithms dp Statement C Codeforces Round 438 by Sberbank and Barcelona Bootcamp (Div. 1 + Div. 2 combined) {868} PROGRAMMING 55046 1500
1004 Huge Strings bitmasks brute force dp implementation strings Statement D Codeforces Round 438 by Sberbank and Barcelona Bootcamp (Div. 1 + Div. 2 combined) {868} PROGRAMMING 55046 2100
7300 Square Subsets bitmasks combinatorics dp math Statement C Codeforces Round 448 (Div. 2) {895} PROGRAMMING Codeforces Round #448(Div.2) Editorial 2000
3771 Unusual Sequences bitmasks combinatorics dp math number theory Statement D Codeforces Round 450 (Div. 2) {900} PROGRAMMING Codeforces Round #450(Div. 2). Editorial. 2100
770 Clear The Matrix bitmasks dp Statement F Educational Codeforces Round 34 (Rated for Div. 2) {903} PROGRAMMING Educational Codeforces Round 34 Editorial 2400
1505 Party bitmasks brute force dp graphs Statement C Codeforces Round 454 (Div. 1, based on Technocup 2018 Elimination Round 4) {906} PROGRAMMING Editorial Codeforces Round 454 (and Technocup 2018 — Elimination Round 4) 2300
836 New Year and Entity Enumeration bitmasks combinatorics dp math Statement E Good Bye 2017 {908} PROGRAMMING Good Bye 2017 Editorial 2400
8454 Party Lemonade bitmasks dp greedy Statement C Hello 2018 {913} PROGRAMMING Tutorial 1600
882 Logical Expression bitmasks dp shortest paths Statement E Hello 2018 {913} PROGRAMMING Tutorial 2400
1132 Sum the Fibonacci bitmasks divide and conquer dp fft math Statement G Codecraft-18 and Codeforces Round 458 (Div. 1 + Div. 2, combined) {914} PROGRAMMING Tutorial 2500
612 Erasing Substrings bitmasks dp greedy Statement F Educational Codeforces Round 38 (Rated for Div. 2) {938} PROGRAMMING Educational Codeforces Round 38 — Editorial 2600
3755 Mahmoud and Ehab and the xor-MST bitmasks dp graphs implementation math Statement E Codeforces Round 473 (Div. 2) {959} PROGRAMMING Codeforces round #473 editorial 1900
2808 Mahmoud and Ehab and yet another xor task bitmasks dp math matrices Statement F Codeforces Round 473 (Div. 2) {959} PROGRAMMING Codeforces round #473 editorial 2600
2171 Kuro and GCD and XOR and SUM binary search bitmasks brute force data structures dp dsu greedy math number theory strings trees Statement D Codeforces Round 482 (Div. 2) {979} PROGRAMMING 1750.0 Codeforces Round #482 (Div. 2) Editorial 2200
3544 Bookshelves bitmasks dp greedy Statement D Avito Code Challenge 2018 {981} PROGRAMMING Avito Code Challenge 2018 — разбор 1800
2521 Addition on Segments bitmasks data structures divide and conquer dp Statement E Avito Code Challenge 2018 {981} PROGRAMMING Avito Code Challenge 2018 — разбор 2100
6834 Xor-Paths bitmasks brute force dp meet-in-the-middle Statement F Codeforces Round 498 (Div. 3) {1006} PROGRAMMING 60672 2400
3346 Vasya and Good Sequences bitmasks dp Statement E Technocup 2019 - Elimination Round 1 {1030} PROGRAMMING Сodeforces Round 512 (and Technocup — Elimination Round 1) Editorial 2100
748 Little C Loves 3 III bitmasks dp math Statement E Codeforces Round 511 (Div. 1) {1034} PROGRAMMING Codeforces Round #511 Editorial 3200
1094 Maximum Matching bitmasks brute force dfs and similar dp graphs Statement E Codeforces Round 508 (Div. 2) {1038} PROGRAMMING Tutorial 2400
19105 Vitamins bitmasks brute force dp implementation Statement B Codeforces Round 510 (Div. 2) {1042} PROGRAMMING Tutorial 1200
2981 Make It One bitmasks combinatorics dp math number theory shortest paths Statement F Codeforces Round 519 by Botan Investments {1043} PROGRAMMING Codeforces Round #519 Editorial 2500
8146 Bicolorings bitmasks dp Statement D Educational Codeforces Round 51 (Rated for Div. 2) {1051} PROGRAMMING Educational Codeforces Round 51 Editorial 1700
3540 Segment Sum bitmasks combinatorics dp math Statement E Educational Codeforces Round 53 (Rated for Div. 2) {1073} PROGRAMMING 62742 2300
35722 Petr and a Combination Lock bitmasks brute force dp Statement B Hello 2019 {1097} PROGRAMMING 64310 1200
139 Mateusz and an Infinite Sequence bitmasks brute force dp strings Statement H Hello 2019 {1097} PROGRAMMING 64310 3000
2348 Elongated Matrix binary search bitmasks brute force dp graphs Statement F Codeforces Round 531 (Div. 3) {1102} PROGRAMMING 64439 2400
492 Professional layer bitmasks dp Statement D Codeforces Round 534 (Div. 1) {1103} PROGRAMMING Codeforces Round #534 — Editorial 3000
1906 Helping Hiasat bitmasks brute force dp meet-in-the-middle Statement E Codeforces Round 533 (Div. 2) {1105} PROGRAMMING Tutorial 2200
671 Crisp String bitmasks dp Statement F Educational Codeforces Round 60 (Rated for Div. 2) {1117} PROGRAMMING 65365 2600
12803 Dima and a Bad XOR bitmasks brute force constructive algorithms dp Statement B Codeforces Round 553 (Div. 2) {1151} PROGRAMMING Codeforces Round #553 (Div. 2) Editorial 1600
754 Neko Rules the Catniverse (Small Version) bitmasks dp matrices Statement F1 Codeforces Round 554 (Div. 2) {1152} PROGRAMMING T 2900
919 Neko Rules the Catniverse (Large Version) bitmasks dp matrices Statement F2 Codeforces Round 554 (Div. 2) {1152} PROGRAMMING T 2900
2725 And Reachability bitmasks dp Statement C Codeforces Round 562 (Div. 1) {1168} PROGRAMMING Codeforces Round #562 — Editorial 2400
3194 Playlist for Polycarp (easy version) bitmasks combinatorics dp Statement G1 Codeforces Round 568 (Div. 2) {1185} PROGRAMMING Editorial for Codeforces Round #568 (Div. 2) 2100
2041 Count The Rectangles bitmasks brute force data structures geometry sortings Statement E Educational Codeforces Round 68 (Rated for Div. 2) {1194} PROGRAMMING Разбор Educational Codeforces Round 68 2200
3289 Bits And Pieces bitmasks dfs and similar dp greedy Statement F Manthan, Codefest 19 (open for everyone, rated, Div. 1 + Div. 2) {1208} PROGRAMMING 69357 2600
3244 Rotate Columns (easy version) bitmasks brute force dp greedy sortings Statement E1 Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) {1209} PROGRAMMING 69791 2000
2296 Rotate Columns (hard version) bitmasks dp greedy sortings Statement E2 Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) {1209} PROGRAMMING 69791 2400
3448 Marbles bitmasks dp Statement E Codeforces Round 585 (Div. 2) {1215} PROGRAMMING Codeforces Round #585 Editorial 2200
875 Graph And Numbers bitmasks brute force combinatorics dp meet-in-the-middle Statement G Educational Codeforces Round 73 (Rated for Div. 2) {1221} PROGRAMMING Разбор Educational Codeforces Round 73 2900
658 To Make 1 bitmasks constructive algorithms dp greedy number theory Statement G Technocup 2020 - Elimination Round 2 {1225} PROGRAMMING 70898 3000
2972 Yet Another Substring Reverse bitmasks dp Statement F Codeforces Round 590 (Div. 3) {1234} PROGRAMMING Codeforces Round #590 (Div. 3) Editorial 2400
3444 Keyboard Purchase bitmasks dp Statement E Educational Codeforces Round 74 (Rated for Div. 2) {1238} PROGRAMMING Educational Codeforces Round 74 Editorial 2200
1943 Sum Balance bitmasks dfs and similar dp graphs Statement C Codeforces Round 599 (Div. 1) {1242} PROGRAMMING Codeforces Round #599 Editorial 2400
2260 Daniel and Spring Cleaning bitmasks brute force combinatorics dp Statement F Codeforces Round 597 (Div. 2) {1245} PROGRAMMING Codeforces Round #597 (Div. 2) Editorial 2300
8588 Dr. Evil Underscores bitmasks brute force dfs and similar divide and conquer dp greedy strings trees Statement D Codeforces Round 613 (Div. 2) {1285} PROGRAMMING Codeforces Round #613 (Div. 2) Editorial 1800
368 Nora's Toy Boxes bitmasks combinatorics dp Statement F Codeforces Round 614 (Div. 1) {1292} PROGRAMMING 2750.0 Codeforces Round #614 Editorial 3400
528 Around the World bitmasks combinatorics dfs and similar dp graphs graphs math trees Statement D Codeforces Round 618 (Div. 1) {1299} PROGRAMMING 1750.0 Codeforces Round #618 Editorial 2900
1372 Kuroni and Antihype bitmasks dp dsu graphs Statement G Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) {1305} PROGRAMMING 3250.0 Ozon Tech Challenge 2020 Editorial 3300
1497 Happy New Year bitmasks dp implementation Statement D Codeforces Round 622 (Div. 2) {1313} PROGRAMMING 2000.0 Editorial 2600
5331 Team Building bitmasks dp greedy sortings Statement E CodeCraft-20 (Div. 2) {1316} PROGRAMMING 2250.0 Codecraft-20 (Div.2) Editorial 2300
880 Reality Show bitmasks dp Statement D Codeforces Round 626 (Div. 1, based on Moscow Open Olympiad in Informatics) {1322} PROGRAMMING 2000.0 Codeforces Round #626 Editorial
1004 Wise Men (Easy Version) bitmasks brute force dp meet-in-the-middle Statement F1 Codeforces Global Round 7 {1326} PROGRAMMING 2000.0 74961 2600
675 Wise Men (Hard Version) bitmasks dp math Statement F2 Codeforces Global Round 7 {1326} PROGRAMMING 1500.0 74961 3200
2021 AND Segments bitmasks combinatorics data structures dp two pointers Statement F Educational Codeforces Round 84 (Rated for Div. 2) {1327} PROGRAMMING Educational Codeforces Round 84 Editorial 2500
525 Letters and Question Marks bitmasks dp string suffix structures Statement G Educational Codeforces Round 84 (Rated for Div. 2) {1327} PROGRAMMING Educational Codeforces Round 84 Editorial 2900
7049 Dreamoon Likes Sequences bitmasks combinatorics dp math Statement B Codeforces Round 631 (Div. 1) - Thanks, Denis aramis Shitov! {1329} PROGRAMMING 750.0 Codeforces Round #631 Editorial 1900
8305 Nastya and Scoreboard bitmasks dp greedy Statement B Codeforces Round 637 (Div. 1) - Thanks, Ivan Belonogov! {1340} PROGRAMMING 750.0 Codeforces Round #637 Editorial
979 Make It Ascending bitmasks brute force dp Statement F Educational Codeforces Round 86 (Rated for Div. 2) {1342} PROGRAMMING 76633 2900
13499 Spy-string bitmasks brute force constructive algorithms dp hashing strings Statement F Codeforces Round 644 (Div. 3) {1360} PROGRAMMING Codeforces Round #644 (Div. 3) Editorial 1700
5431 GameGame bitmasks constructive algorithms dp games greedy math Statement B Codeforces Round 659 (Div. 1) {1383} PROGRAMMING 1000.0 Codeforces Round #659 Editorial
21815 a-Good String bitmasks brute force divide and conquer dp implementation Statement D Codeforces Round 656 (Div. 3) {1385} PROGRAMMING Codeforces Round #656 (Div. 3) Editorial 1500
5751 505 bitmasks brute force dp implementation Statement D Codeforces Round 663 (Div. 2) {1391} PROGRAMMING 2000.0 Codeforces Round #663 (Div. 2) Editorial
674 Omkar and Pies bitmasks dfs and similar dp math Statement G Codeforces Global Round 10 {1392} PROGRAMMING 3000.0 Codeforces Global Round 10 — Editorial
15184 Boboniu and Bit Operations bitmasks brute force dp Statement C Codeforces Round 664 (Div. 2) {1395} PROGRAMMING 1000.0 Codeforces Round #664 Editorial 1600
1159 x-prime Substrings bitmasks dp greedy number theory string suffix structures strings Statement F Educational Codeforces Round 94 (Rated for Div. 2) {1400} PROGRAMMING 81942
865 Yet Another DAG Problem bitmasks dp flows math Statement G Educational Codeforces Round 96 (Rated for Div. 2) {1430} PROGRAMMING Educational Codeforces Round 96 — Editorial
4077 Xor Tree binary search bitmasks data structures divide and conquer dp trees Statement C Codeforces Round 683 (Div. 1, by Meet IT) {1446} PROGRAMMING 1250.0 E
349 Communism bitmasks dp trees Statement G Codeforces Global Round 12 {1450} PROGRAMMING 3750.0 Codeforces Global Round 12 Editorial
732 Max Correct Set bitmasks dp Statement F Educational Codeforces Round 100 (Rated for Div. 2) {1463} PROGRAMMING Educational Codeforces Round 100 Editorial
1730 Genius bitmasks dp graphs Statement D Codeforces Round 708 (Div. 2) {1497} PROGRAMMING 1750.0 Codeforces Round #708 Editorial 2500
4414 Almost Sorted binary search bitmasks combinatorics constructive algorithms dp implementation math Statement B Codeforces Round 715 (Div. 1) {1508} PROGRAMMING 1000.0 Codeforces Round #715 Editorial
25238 AGAGA XOOORRR bitmasks brute force dp greedy Statement B Codeforces Round 717 (Div. 2) {1516} PROGRAMMING 1000.0 Codeforces round #717 editorial
14052 Baby Ehab Partitions Again bitmasks constructive algorithms dp math Statement C Codeforces Round 717 (Div. 2) {1516} PROGRAMMING 1500.0 Codeforces round #717 editorial
2469 Love-Hate bitmasks brute force dp probabilities Statement D Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2) {1523} PROGRAMMING 2250.0 Deltix Round, Spring 2021. Editorial 2400
985 Bingo bitmasks dp probabilities Statement F Codeforces Round 733 (Div. 1 + Div. 2, based on VK Cup 2021 - Elimination (Engine)) {1530} PROGRAMMING 2750.0 Codeforces Round #733 Editorial (all problems)
92 Submatrices *special bitmasks data structures dp Statement H Kotlin Heroes: Episode 7 {1533} PROGRAMMING Kotlin Heroes 7 — Editorial
1833 Stringforces binary search bitmasks data structures dp greedy strings two pointers Statement E Educational Codeforces Round 111 (Rated for Div. 2) {1550} PROGRAMMING Educational Codeforces Round 111 Editorial
7861 Array Differentiation bitmasks dp graphs math Statement D Codeforces Global Round 15 {1552} PROGRAMMING 1000.0 Editorial of Global Round 15
828 XOR and Distance bitmasks divide and conquer dp trees Statement H Harbour.Space Scholarship Contest 2021-2022 (open for everyone, rated, Div. 1 + Div. 2) {1553} PROGRAMMING 3750.0 Harbour.Space Scholarship Contest 2021-2022 (Div. 1 + Div. 2) Editorial
1415 Sports Betting bitmasks combinatorics dp graphs math probabilities Statement F Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2) {1556} PROGRAMMING 2500.0 94384 2500
10459 Moamen and XOR bitmasks combinatorics dp math Statement C Codeforces Round 737 (Div. 2) {1557} PROGRAMMING 1750.0 Codeforces Round #737 Editorial
4928 Nearest Beautiful Number (hard version) bitmasks brute force constructive algorithms dfs and similar dp greedy Statement F2 Codeforces Round 739 (Div. 3) {1560} PROGRAMMING 94009 2100
21177 MIN-MEX Cut bitmasks constructive algorithms dp Statement B Codeforces Global Round 16 {1566} PROGRAMMING 750.0 Codeforces Global Round 16 Editorial
18999 MAX-MEX Cut bitmasks constructive algorithms dp greedy Statement C Codeforces Global Round 16 {1566} PROGRAMMING 1000.0 Codeforces Global Round 16 Editorial
13143 Carrying Conundrum bitmasks combinatorics dp Statement C Codeforces Round 742 (Div. 2) {1567} PROGRAMMING 1500.0 Codeforces Round #742 Editorial
374 Fix the String *special bitmasks dp greedy Statement E Kotlin Heroes: Episode 8 {1571} PROGRAMMING Kotlin Heroes 8 Editorial
6559 Korney Korneevich and XOR (easy version) bitmasks dp Statement F1 Codeforces Round 750 (Div. 2) {1582} PROGRAMMING 2000.0 Codeforces Round #750 (Div.2) Editorial
1112 Strange LCS bitmasks dp graphs greedy strings Statement F Technocup 2022 - Elimination Round 2 {1584} PROGRAMMING 2500.0 Editorial for Technocup 2022 — Elimination Round 2 and Codeforces Round #755 (Div. 1, Div. 2) 2600
9105 Bakry and Partitioning bitmasks constructive algorithms dfs and similar dp graphs trees Statement C Codeforces Round 746 (Div. 2) {1592} PROGRAMMING 1500.0 95583
1623 RBS binary search bitmasks data structures dp Statement F Educational Codeforces Round 115 (Rated for Div. 2) {1598} PROGRAMMING 95890
11282 Divan and bitwise operations bitmasks combinatorics constructive algorithms dp math Statement C Codeforces Round 757 (Div. 2) {1614} PROGRAMMING 1500.0 Tutorial 1500
1228 Keep XOR Low bitmasks combinatorics divide and conquer dp math Statement H Good Bye 2021: 2022 is NEAR {1616} PROGRAMMING 4000.0 Good Bye 2021 -- Editorial 3000
7262 BA-String bitmasks brute force dp greedy implementation math shortest paths Statement C Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
1153 Subsequences Galore bitmasks combinatorics dp math Statement G Educational Codeforces Round 119 (Rated for Div. 2) {1620} PROGRAMMING 98061
1793 MinimizOR binary search bitmasks data structures dp greedy implementation Statement E Codeforces Round 781 (Div. 2) {1665} PROGRAMMING 2250.0 Codeforces Round #781 (Div. 2) Editorial
1936 Hemose on the Tree bitmasks constructive algorithms dfs and similar trees Statement E Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 2750.0 Tutorial 2200
1257 Jee, You See? bitmasks combinatorics dp Statement F Codeforces Round 788 (Div. 2) {1670} PROGRAMMING 3000.0 Tutorial 2400
1412 Typical Party in Dorm bitmasks brute force combinatorics dp strings two pointers Statement E Codeforces Round 791 (Div. 2) {1679} PROGRAMMING 2250.0 Codeforces Round #791 (Div. 2) Editorial
771 Formalism for Formalism bitmasks dp math Statement F Codeforces Round 791 (Div. 2) {1679} PROGRAMMING 3000.0 Codeforces Round #791 (Div. 2) Editorial
4314 Moving Chips binary search bitmasks dp greedy Statement E Educational Codeforces Round 128 (Rated for Div. 2) {1680} PROGRAMMING 102852
5737 Passable Paths (hard version) bitmasks data structures dfs and similar dp sortings trees Statement G2 Codeforces Round 805 (Div. 3) {1702} PROGRAMMING 104763
12698 Good Key, Bad Key bitmasks brute force dp greedy math Statement G Codeforces Round 806 (Div. 4) {1703} PROGRAMMING 104786
174 Bugaboo bitmasks constructive algorithms dp number theory Statement F Codeforces Round 808 (Div. 1) {1707} PROGRAMMING 3250.0 104930
1620 XOR Triangle bitmasks dp Statement C Codeforces Round 810 (Div. 1) {1710} PROGRAMMING 1750.0 Codeforces Round #810 Editorial
681 Lost Array bitmasks combinatorics constructive algorithms dp math Statement F Codeforces Round 812 (Div. 2) {1713} PROGRAMMING 3000.0 Codeforces Round #812 (Div. 2) Editorial 2900
1315 Swap and Maximum Block bitmasks data structures divide and conquer dp Statement E Educational Codeforces Round 133 (Rated for Div. 2) {1716} PROGRAMMING 105653
6695 Xor-Subsequence (easy version) bitmasks brute force dp strings trees Statement D1 Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 1500.0 Codeforces Round #815 (Div. 2) Editorial
2181 Xor-Subsequence (hard version) bitmasks data structures dp strings trees Statement D2 Codeforces Round 815 (Div. 2) {1720} PROGRAMMING 1000.0 Codeforces Round #815 (Div. 2) Editorial
741 Almost Sorted bitmasks data structures dp Statement F Codeforces Round 823 (Div. 2) {1730} PROGRAMMING 3000.0 Codeforces Round #823 — editorial 2700
967 Zeros and Ones bitmasks divide and conquer dp math Statement F Codeforces Round 822 (Div. 2) {1734} PROGRAMMING 3250.0 Codeforces Round #822 (Div.2) Editorial
632 Keyboard Design bitmasks data structures dp string suffix structures strings Statement F Educational Codeforces Round 136 (Rated for Div. 2) {1739} PROGRAMMING Educational Codeforces Round 136 Editorial
1454 Cleaning Robot bitmasks dp Statement E Educational Codeforces Round 136 (Rated for Div. 2) {1739} PROGRAMMING Educational Codeforces Round 136 Editorial
1922 Kirill and Company bitmasks brute force dp graphs shortest paths Statement G Codeforces Round 826 (Div. 3) {1741} PROGRAMMING 107908
304 Antifibonacci Cut bitmasks combinatorics dp math Statement G Educational Codeforces Round 137 (Rated for Div. 2) {1743} PROGRAMMING Educational Codeforces Round 137 Editorial 3000
7334 Count GCD bitmasks combinatorics dp math number theory Statement D CodeTON Round 3 (Div. 1 + Div. 2, Rated, Prizes!) {1750} PROGRAMMING 1750.0 CodeTON Round 3 (Div. 1 + Div. 2) Editorial
2760 Carry Bit bitmasks brute force combinatorics dp math Statement D Pinely Round 1 (Div. 1 + Div. 2) {1761} PROGRAMMING 1750.0 Pinely Round 1 (Div. 1 + Div. 2) Editorial
1249 Algebra Flash bitmasks brute force dp graphs meet-in-the-middle trees Statement E Educational Codeforces Round 140 (Rated for Div. 2) {1767} PROGRAMMING 110225
545 Game of Questions bitmasks dp math probabilities Statement G 2022-2023 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1773} PROGRAMMING 2800
4660 Score of a Tree bitmasks combinatorics dfs and similar dp probabilities trees Statement D Codeforces Round 845 (Div. 2) and ByteRace 2023 {1777} PROGRAMMING 2000.0 Codeforces Round #845 (Div. 2) and ByteRace 2023 Editorial
382 Tree Cutting bitmasks dfs and similar dp Statement H Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} PROGRAMMING 3500.0 Codeforces Round #854 Editorial
245 Code Lock bitmasks dp Statement H Nebius Welcome Round (Div. 1 + Div. 2) {1804} PROGRAMMING 3500.0 Nebius Welcome Round Editorial
1700 Routing bitmasks dp graphs Statement E Nebius Welcome Round (Div. 1 + Div. 2) {1804} PROGRAMMING 2000.0 Nebius Welcome Round Editorial
1488 XOR Counting bitmasks combinatorics dp math Statement D Codeforces Round 865 (Div. 1) {1815} PROGRAMMING 2500.0 Editorial of Codeforces Round #865 2600
1946 Walk the Runway bitmasks brute force data structures dp graphs implementation sortings Statement E Codeforces Round 870 (Div. 2) {1826} PROGRAMMING 2500.0 Codeforces Round #870 (Div. 2) Editorial 2400
10723 Don't Blame Me bitmasks combinatorics dp math Statement H Codeforces Round 871 (Div. 4) {1829} PROGRAMMING Codeforces Round 871 (Div. 4) Editorial 1700
850 Tenzing and Random Real Numbers 2-sat bitmasks dp probabilities Statement H CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) {1842} PROGRAMMING 3750.0 CodeTON Round 5 Editorial
5617 Rudolf and CodeVid-23 bitmasks dp graphs greedy shortest paths Statement G Codeforces Round 883 (Div. 3) {1846} PROGRAMMING
14730 Vampiric Powers, anyone? bitmasks brute force data structures dp greedy Statement C Codeforces Round 882 (Div. 2) {1847} PROGRAMMING 1500.0 Tutorial
4187 Earn or Unlock bitmasks brute force dp Statement B Codeforces Round 889 (Div. 1) {1854} PROGRAMMING 1500.0 Editorial of Codeforces Round 889 (Div. 1 + Div. 2)
1748 PermuTree (hard version) bitmasks dp implementation trees Statement E2 Codeforces Round 890 (Div. 2) supported by Constructor Institute {1856} PROGRAMMING 1500.0 Codeforces Round #890 (Div. 2) Editorial
3588 Balanced String bitmasks constructive algorithms dp Statement D Educational Codeforces Round 153 (Rated for Div. 2) {1860} PROGRAMMING Educational Codeforces Round 153 Editorial
7572 Magic Will Save the World binary search bitmasks brute force dp Statement F Codeforces Round 894 (Div. 3) {1862} PROGRAMMING Tutorial
1345 Divide, XOR, and Conquer bitmasks dp Statement F Pinely Round 2 (Div. 1 + Div. 2) {1863} PROGRAMMING 2500.0
2739 Candy Party (Hard Version) bitmasks constructive algorithms dp graphs greedy implementation math Statement B2 Codeforces Round 896 (Div. 1) {1868} PROGRAMMING 750.0 Codeforces Round 896 (Div. 1, Div. 2) Editorial
2929 Another MEX Problem bitmasks dp graphs shortest paths Statement E CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) {1870} PROGRAMMING 2750.0 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial
1387 Jellyfish and Math bitmasks dp graphs shortest paths Statement B Codeforces Round 901 (Div. 1) {1874} PROGRAMMING 1250.0 Codeforces Round 901 (Div. 1, Div. 2) Editorial
10387 Sum of XOR Functions bitmasks combinatorics dp Statement D Educational Codeforces Round 155 (Rated for Div. 2) {1879} PROGRAMMING 120773 1700
7063 Tree XOR bitmasks dfs and similar dp greedy trees Statement D Codeforces Round 899 (Div. 2) {1882} PROGRAMMING 2000.0 Codeforces Round 899 (Div. 2) Editorial
1847 I Wanna be the Team Leader bitmasks dp two pointers Statement E Educational Codeforces Round 156 (Rated for Div. 2) {1886} PROGRAMMING Educational Codeforces Round 156 Editorial
1018 Maximum And Queries (hard version) bitmasks divide and conquer dp Statement D2 Codeforces Round 912 (Div. 2) {1903} PROGRAMMING 2500.0 Codeforces Round #912 (Div. 2) Editorial
4169 Kim's Quest bitmasks combinatorics dp Statement K 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1912} PROGRAMMING Tutorials (PDF) 1800
1188 Construct Tree bitmasks constructive algorithms dp trees Statement F Codeforces Round 917 (Div. 2) {1917} PROGRAMMING 3000.0 Editorial of Codeforces Round 917 (Div. 2)
16586 XOR-distance bitmasks dp greedy implementation math Statement C Codeforces Round 922 (Div. 2) {1918} PROGRAMMING 1250.0 Codeforces Round #922 (Div. 2) Editorial
14797 Vlad and an Odd Ordering binary search bitmasks data structures dp implementation math number theory Statement E Codeforces Round 928 (Div. 4) {1926} PROGRAMMING 126132
2087 Vlad and Avoiding X bitmasks brute force constructive algorithms dfs and similar dp implementation Statement F Codeforces Round 928 (Div. 4) {1926} PROGRAMMING 126132
2065 Sasha and the Happy Tree Cutting bitmasks brute force dp fft graphs greedy trees Statement E Codeforces Round 926 (Div. 2) {1929} PROGRAMMING 2500.0 Codeforces Round #926 (Div. 2) Editorial.
6039 Shuffling Songs bitmasks dp graphs implementation strings Statement G Codeforces Round 937 (Div. 4) {1950} PROGRAMMING Codeforces Round 937 (Div. 4) Editorial
1514 The Most Reckless Defense bitmasks brute force constructive algorithms dp flows graph matchings Statement H Codeforces Round 938 (Div. 3) {1955} PROGRAMMING 128243
4753 Nene and the Mex Operator bitmasks brute force constructive algorithms divide and conquer dp greedy implementation Statement D Codeforces Round 939 (Div. 2) {1956} PROGRAMMING 1750.0 [Editorial] Codeforces Round 939 (Div. 2)
5775 A BIT of an Inequality bitmasks brute force dp math Statement D Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} PROGRAMMING 1750.0 Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial 1900
2227 Fenwick Tree bitmasks brute force combinatorics data structures dp math trees Statement C Codeforces Round 942 (Div. 1) {1967} PROGRAMMING 1250.0 Tutorial 2300
538 Min-Fund Prison (Hard) bitmasks dfs and similar dp graphs trees Statement G3 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) {1970} PROGRAMMING Helvetic Coding Contest 2024 Editorial 2400
319 Maximum GCD Sum Queries bitmasks brute force dp implementation number theory Statement F Codeforces Round 945 (Div. 2) {1973} PROGRAMMING 3000.0 Editorial for Codeforces Round #945 (Div. 2) 3100
1035 Set bitmasks brute force combinatorics dfs and similar divide and conquer dp math Statement F Codeforces Round 947 (Div. 1 + Div. 2) {1975} PROGRAMMING 2500.0 editorial_zh.pdf 2600
1895 Number of k-good subarrays bitmasks combinatorics divide and conquer dp math meet-in-the-middle Statement E Codeforces Round 955 (Div. 2, with prizes from NEAR!) {1982} PROGRAMMING 2500.0 130839
23267 Substring and Subsequence bitmasks brute force dp graphs greedy hashing strings trees Statement B Educational Codeforces Round 167 (Rated for Div. 2) {1989} PROGRAMMING Educational Codeforces Round 167 Editorial
7694 Grid Puzzle bitmasks dp greedy Statement D Codeforces Round 960 (Div. 2) {1990} PROGRAMMING 1750.0 Video Tutorial
725 Xor-Grid Problem bitmasks dp Statement E Codeforces Round 963 (Div. 2) {1993} PROGRAMMING 2750.0 Editorial of Codeforces Round 963 (Div. 2)
1617 Minecraft bitmasks brute force dp math Statement G Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2) {1994} PROGRAMMING 2750.0 Video Tutorial
396 Let Me Teach You a Lesson (Hard Version) 2-sat bitmasks data structures dp graphs matrices two pointers Statement E2 Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 1500.0 Video Tutorial
2877 Cases bitmasks brute force combinatorics dfs and similar dp graphs greedy strings Statement D Codeforces Round 961 (Div. 2) {1995} PROGRAMMING 2250.0 Video Tutorial
3963 Expected Power bitmasks brute force dp math number theory probabilities Statement E Codeforces Round 976 (Div. 2) and Divide By Zero 9.0 {2020} PROGRAMMING 2000.0 Tutorial for Codeforces Round 976 (Div. 2) and Divide By Zero 9.0
109 Bit Game (Hard Version) bitmasks dp math Statement E2 Codeforces Round 982 (Div. 2) {2027} PROGRAMMING 1000.0 Codeforces Round #982 (Div. 2) Editorial
533 Alice's Adventures in Addition bitmasks dp implementation Statement F Codeforces Round 986 (Div. 2) {2028} PROGRAMMING 2500.0 Codeforces Round 986 (Div. 2) Editorial
110 Message Spread bitmasks combinatorics dp Statement H Refact.ai Match 1 (Codeforces Round 985) {2029} PROGRAMMING 5000.0 Refact.ai Match 1 (Codeforces Round 985) Editorial
5236 XORificator 3000 bitmasks dp number theory Statement F Codeforces Round 984 (Div. 3) {2036} PROGRAMMING Codeforces Round 984 (Div. 3) Editorial
854 Divide OR Conquer bitmasks data structures dp implementation Statement D 2024-2025 ICPC, NERC, Southern and Volga Russian Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2038} PROGRAMMING 2400
1996 Cube bitmasks dp Statement C 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) {2041} PROGRAMMING Problem Analysis and Hints (PDF)
900 Nim bitmasks dp games Statement F Educational Codeforces Round 173 (Rated for Div. 2) {2043} PROGRAMMING Educational Codeforces Round 173 Editorial
2419 Snakes bitmasks dp graphs Statement G Codeforces Round 995 (Div. 3) {2051} PROGRAMMING 137623
12294 Bewitching Stargazer bitmasks divide and conquer dp math Statement C Good Bye 2024: 2025 is NEAR {2053} PROGRAMMING 1250.0 Good Bye 2024: 2025 is NEAR Editorial
435 Xor of Median (Easy Version) bitmasks combinatorics dp math Statement F1 Codeforces Round 997 (Div. 2) {2056} PROGRAMMING 2750.0 Codeforces Round #997 (Div. 2) Editorial
3938 Kevin and And bitmasks brute force dp greedy Statement E IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) {2061} PROGRAMMING 2000.0 IAEPC Preliminary Contest (Codeforces Round 999, Div. 1 + Div. 2) Editorial
174 Galaxy Generator bitmasks combinatorics dp Statement H Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) {2062} PROGRAMMING 4500.0 Ethflow Round 1 (Codeforces Round 1001, Div. 1 + Div. 2) Editorial
2444 Bitwise Slides bitmasks combinatorics dp math Statement C Codeforces Round 1004 (Div. 1) {2066} PROGRAMMING 1250.0 139415
1073 Infinite Sequence (Hard Version) bitmasks constructive algorithms data structures dp implementation math Statement D2 Codeforces Round 1007 (Div. 2) {2071} PROGRAMMING 1250.0 Codeforces Round 1007 (Div. 2) Editorial
6636 Infinite Sequence (Easy Version) bitmasks dp math Statement D1 Codeforces Round 1007 (Div. 2) {2071} PROGRAMMING 1750.0 Codeforces Round 1007 (Div. 2) Editorial
5758 Equalization bitmasks brute force dp greedy math Statement D Educational Codeforces Round 176 (Rated for Div. 2) {2075} PROGRAMMING Educational Codeforces Round 176 Editorial
1147 XOR Matrix bitmasks dp Statement E Educational Codeforces Round 176 (Rated for Div. 2) {2075} PROGRAMMING Educational Codeforces Round 176 Editorial
258 AND x OR bitmasks constructive algorithms dp Statement F Codeforces Round 1008 (Div. 1) {2077} PROGRAMMING 2500.0 Codeforces Round 1008 (Div. 1, Div. 2) Editorial
4053 Math Division bitmasks dp math probabilities Statement A Codeforces Round 1010 (Div. 1, Unrated) {2081} PROGRAMMING 500.0 Codeforces Round 1010 (Div. 1, Div. 2, based on Zhili Cup 2025) Editorial
1656 Zebra-like Numbers bitmasks brute force dfs and similar dp math Statement E Educational Codeforces Round 177 (Rated for Div. 2) {2086} PROGRAMMING Educational Codeforces Round 177 Editorial
222 Wonderful XOR Problem bitmasks combinatorics dp fft math Statement H Neowise Labs Contest 1 (Codeforces Round 1018, Div. 1 + Div. 2) {2096} PROGRAMMING 3500.0 Neowise Labs Contest 1 (Codeforces Round 1018, Div. 1 + Div. 2) Editorial