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']
Solved |
Name |
Tags |
Solutions |
Index |
Contest |
Type |
Points |
Tutorial |
Rating Level |
---|---|---|---|---|---|---|---|---|---|
15306 | Cyclic Permutations | combinatorics graphs math | Statement | C | Codeforces Round 663 (Div. 2) {1391} | PROGRAMMING | 1250.0 | Codeforces Round #663 (Div. 2) Editorial | |
853 | Danger of Mad Snakes | combinatorics dp math | Statement | D | 2020 ICPC, COMPFEST 12, Indonesia Multi-Provincial Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1425} | PROGRAMMING | Tutorial | 2300 | |
18978 | Two Round Dances | combinatorics math | Statement | E | Codeforces Round 677 (Div. 3) {1433} | PROGRAMMING | Codeforces Round #677 (Div. 3) Editorial | ||
1371 | Emotional Fishermen | combinatorics dp math | Statement | F | Educational Codeforces Round 97 (Rated for Div. 2) {1437} | PROGRAMMING | 84149 | ||
6447 | Divide and Sum | combinatorics math | Statement | B | Codeforces Round 680 (Div. 1, based on Moscow Team Olympiad) {1444} | PROGRAMMING | 1000.0 | Codeforces Round #680 Editorial | |
462 | Multithreading (Easy Version) | combinatorics fft math | Statement | H1 | Codeforces Global Round 12 {1450} | PROGRAMMING | 2750.0 | Codeforces Global Round 12 Editorial | |
246 | Multithreading (Hard Version) | combinatorics implementation math | Statement | H2 | Codeforces Global Round 12 {1450} | PROGRAMMING | 1750.0 | Codeforces Global Round 12 Editorial | |
8236 | Radio Towers | combinatorics dp math | Statement | D | Educational Codeforces Round 98 (Rated for Div. 2) {1452} | PROGRAMMING | 84847 | ||
3776 | Sum of Paths | combinatorics dp math | Statement | D | Codeforces Round 695 (Div. 2) {1467} | PROGRAMMING | 1750.0 | Codeforces Round #695 (Div. 2) Editorial | 2200 |
423 | Tiles | combinatorics dp fft math | Statement | G | Educational Codeforces Round 102 (Rated for Div. 2) {1473} | PROGRAMMING | Educational Codeforces Round 102 Editorial | ||
22699 | Ball in Berland | combinatorics dfs and similar graphs hashing math | Statement | C | Codeforces Round 697 (Div. 3) {1475} | PROGRAMMING | Codeforces Round #697 (Div. 3) Editorial | ||
616 | String Counting | combinatorics dp math | Statement | G | Educational Codeforces Round 104 (Rated for Div. 2) {1487} | PROGRAMMING | 87873 | ||
737 | 2-Coloring | combinatorics dp math | Statement | E | Codeforces Round 712 (Div. 1) {1503} | PROGRAMMING | 2500.0 | T | 3100 |
2688 | Colorings and Dominoes | combinatorics dp math | Statement | E | Educational Codeforces Round 107 (Rated for Div. 2) {1511} | PROGRAMMING | 89634 | ||
3831 | Phoenix and Computers | combinatorics dp math | Statement | E | Codeforces Global Round 14 {1515} | PROGRAMMING | 2750.0 | Editorial | |
911 | Baby Ehab Plays with Permutations | combinatorics dp math | Statement | E | Codeforces Round 717 (Div. 2) {1516} | PROGRAMMING | 2750.0 | Codeforces round #717 editorial | |
302 | AmShZ Farm | combinatorics fft math | Statement | F | Codeforces Round 722 (Div. 1) {1528} | PROGRAMMING | 3000.0 | Codeforces Round #722 Editorial | |
13112 | Little Alawn's Puzzle | combinatorics dfs and similar dp ds graphs math | Statement | C | Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) {1534} | PROGRAMMING | 1250.0 | Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) Editorial | |
987 | Omkar and Akmar | combinatorics games math | Statement | F | Codeforces Round 724 (Div. 2) {1536} | PROGRAMMING | 2500.0 | Codeforces Round #724 — Editorial | 2600 |
20624 | Contest Start | combinatorics geometry math | Statement | A | Codeforces Round 727 (Div. 2) {1539} | PROGRAMMING | 500.0 | tutorial | 1000 |
1293 | Abnormal Permutation Pairs (easy version) | combinatorics dp fft math | Statement | E1 | Codeforces Round 729 (Div. 2) {1542} | PROGRAMMING | 2000.0 | ||
2715 | Priority Queue | combinatorics dp implementation math | Statement | D | Codeforces Round 729 (Div. 2) {1542} | PROGRAMMING | 2000.0 | ||
896 | Abnormal Permutation Pairs (hard version) | combinatorics dp math | Statement | E2 | Codeforces Round 729 (Div. 2) {1542} | PROGRAMMING | 1000.0 | ||
23703 | Customising the Track | combinatorics greedy math | Statement | B | Codeforces Round 730 (Div. 2) {1543} | PROGRAMMING | 750.0 | Codeforces Round #730 (Div. 2) Editorial | |
6134 | AquaMoon and Chess | combinatorics math | Statement | B | Codeforces Round 732 (Div. 1) {1545} | PROGRAMMING | 1000.0 | Codeforces Round #732 Editorial | 1900 |
1889 | The Three Little Pigs | combinatorics dp fft math | Statement | C | Codeforces Round 736 (Div. 1) {1548} | PROGRAMMING | 1750.0 | Codeforces Round 736 Editorial | |
239 | Stairs | combinatorics divide and conquer fft math | Statement | I | Harbour.Space Scholarship Contest 2021-2022 (open for everyone, rated, Div. 1 + Div. 2) {1553} | PROGRAMMING | 5250.0 | Harbour.Space Scholarship Contest 2021-2022 (Div. 1 + Div. 2) Editorial | |
12469 | Jury Meeting | combinatorics math | Statement | C | Educational Codeforces Round 113 (Rated for Div. 2) {1569} | PROGRAMMING | 94721 | ||
17639 | Combinatorics Homework | combinatorics greedy math | Statement | B | Educational Codeforces Round 114 (Rated for Div. 2) {1574} | PROGRAMMING | 95188 | ||
23464 | Luntik and Subsequences | combinatorics math | Statement | B | Codeforces Round 750 (Div. 2) {1582} | PROGRAMMING | 750.0 | Codeforces Round #750 (Div.2) Editorial | |
1375 | Non-equal Neighbours | combinatorics dp math | Statement | F | Technocup 2022 - Elimination Round 3 {1585} | PROGRAMMING | 3000.0 | Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial | |
211 | Omkar and Mosaic | combinatorics constructive algorithms math | Statement | I | Codeforces Round 749 (Div. 1 + Div. 2, based on Technocup 2022 Elimination Round 1) {1586} | PROGRAMMING | 4000.0 | Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2) | |
336 | Non-equal Neighbours | combinatorics data structures dp math | Statement | F | Codeforces Round 759 (Div. 2, based on Technocup 2022 Elimination Round 3) {1591} | PROGRAMMING | 3000.0 | Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial | |
11428 | Rubik's Cube Coloring (easy version) | combinatorics math | Statement | E1 | Codeforces Round 747 (Div. 2) {1594} | PROGRAMMING | 1000.0 | 95525 | 1300 |
9086 | Training Session | combinatorics math | Statement | D | Educational Codeforces Round 115 (Rated for Div. 2) {1598} | PROGRAMMING | 95890 | ||
294 | October 18, 2017 | combinatorics dp implementation math | Statement | F | Codeforces Round 752 (Div. 1) {1603} | PROGRAMMING | 3750.0 | Editorial of Codeforces Round #752 | |
1442 | Dominoes | combinatorics fft graphs math | Statement | D | Codeforces Round 758 (Div.1 + Div. 2) {1608} | PROGRAMMING | 1500.0 | Editorial of Codeforces Round #758 (Div.1 + Div. 2) | |
945 | LEGOndary Grandmaster | combinatorics dp math | Statement | F | Codeforces Global Round 18 {1615} | PROGRAMMING | 3000.0 | Global Round 18 Editorial | |
85 | Three Minimums | combinatorics fft math | Statement | H | Codeforces Round 778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) {1654} | PROGRAMMING | 4000.0 | Editorial of Codeforces Round #778 (Div. 1 + Div. 2, based on Technocup 2022 Final Round) | 3500 |
2219 | Star MST | combinatorics dp math | Statement | E | Educational Codeforces Round 125 (Rated for Div. 2) {1657} | PROGRAMMING | 101161 | ||
18882 | Marin and Anti-coprime Permutation | combinatorics math | Statement | B | Codeforces Round 779 (Div. 2) {1658} | PROGRAMMING | 1000.0 | Codeforces Round #779 (Div. 2) Editorial | |
706 | Centroid Probabilities | combinatorics dp fft math | Statement | E | Codeforces Round 783 (Div. 1) {1667} | PROGRAMMING | 2750.0 | Codeforces Round #783 Editorial | 3000 |
27167 | Dictionary | combinatorics math | Statement | B | Codeforces Round 786 (Div. 3) {1674} | PROGRAMMING | 102482 | ||
4294 | Placing Jinas | combinatorics math | Statement | E | Codeforces Global Round 21 {1696} | PROGRAMMING | 2000.0 | Editorial of Codeforces Global Round 21 | |
215 | Game of AI (easy version) | combinatorics fft math | Statement | H1 | CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) {1704} | PROGRAMMING | 2250.0 | CodeTON Round 2 Editorial | |
98 | Game of AI (hard version) | combinatorics fft math | Statement | H2 | CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) {1704} | PROGRAMMING | 2750.0 | CodeTON Round 2 Editorial | |
4564 | Madoka and The Corruption Scheme | combinatorics math | Statement | D | Codeforces Round 818 (Div. 2) {1717} | PROGRAMMING | 2000.0 | Codeforces Round #818 (Div. 2) Editorial. | 1900 |
1494 | Almost Perfect | combinatorics fft math | Statement | E | Codeforces Round 819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 {1726} | PROGRAMMING | 2250.0 | Codeforces Round #819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022 Editorial | |
853 | Conditional Mix | combinatorics dp math | Statement | F | Codeforces Round 831 (Div. 1 + Div. 2) {1740} | PROGRAMMING | 2500.0 | Tutorial | 2600 |
532 | List Generation | combinatorics math | Statement | E | Codeforces Round 832 (Div. 2) {1747} | PROGRAMMING | 2500.0 | Codeforces Round #832 (Div. 2) Editorial | |
88 | Anti-median (Hard Version) | combinatorics dp math | Statement | F2 | Pinely Round 1 (Div. 1 + Div. 2) {1761} | PROGRAMMING | 2000.0 | Pinely Round 1 (Div. 1 + Div. 2) Editorial | |
2150 | Valid Bitonic Permutations | combinatorics dp implementation math | Statement | D | Codeforces Round 840 (Div. 2) and Enigma 2022 - Cybros LNMIIT {1763} | PROGRAMMING | 2000.0 | Codeforces Round #840 (Div. 2) and Enigma 2022 — Cybros LNMIIT Editorial | |
2893 | Doremy's Pegging Game | combinatorics geometry math | Statement | D | Codeforces Global Round 24 {1764} | PROGRAMMING | 1750.0 | Codeforces Global Round 24 Editorial | |
9177 | Serval and Toxel's Arrays | combinatorics implementation math | Statement | C | Codeforces Round 853 (Div. 2) {1789} | PROGRAMMING | 1250.0 | Codeforces Round #853 (Div. 2) Editorial | |
10197 | Triangle Coloring | combinatorics math | Statement | D | Educational Codeforces Round 143 (Rated for Div. 2) {1795} | PROGRAMMING | 112963 | ||
844 | Count Voting | combinatorics dp math | Statement | G | Codeforces Round 854 by cybercats (Div. 1 + Div. 2) {1799} | PROGRAMMING | 3000.0 | Codeforces Round #854 Editorial | |
976 | DSU Master | combinatorics dp ds math | Statement | D | Codeforces Round 858 (Div. 2) {1806} | PROGRAMMING | 2000.0 | Codeforces Round #858 (Div. 2) Editorial | |
2217 | Vlad and the Nice Paths (easy version) | combinatorics dp math | Statement | G1 | Codeforces Round 863 (Div. 3) {1811} | PROGRAMMING | 114788 | ||
803 | Timber | combinatorics dp fft math | Statement | F | Educational Codeforces Round 147 (Rated for Div. 2) {1821} | PROGRAMMING | 115296 | ||
20379 | Matching | combinatorics math | Statement | A | Educational Codeforces Round 147 (Rated for Div. 2) {1821} | PROGRAMMING | 115296 | ||
16652 | A-characteristic | combinatorics constructive algorithms math | Statement | A | Codeforces Round 868 (Div. 2) {1823} | PROGRAMMING | 500.0 | 115465 | |
1593 | Count Supersequences | combinatorics dp math | Statement | E | Codeforces Round 877 (Div. 2) {1838} | PROGRAMMING | 2250.0 | Codeforces Round #877 (Div. 2) Editorial | |
197 | Multiple of Three Cycles | combinatorics dp ds math | Statement | H | Codeforces Round 884 (Div. 1 + Div. 2) {1844} | PROGRAMMING | 4000.0 | Codeforces Round #884 (Div. 1 + Div. 2) Editorial | |
1087 | One-X | combinatorics dp math | Statement | E | Codeforces Round 915 (Div. 2) {1905} | PROGRAMMING | 2250.0 | Codeforces Round 915 (Div. 2) Editorial | |
128 | Short Permutation Problem | combinatorics dp fft math | Statement | I | Pinely Round 3 (Div. 1 + Div. 2) {1909} | PROGRAMMING | 6000.0 | Editorial of Pinely Round 3 (Div. 1 + Div. 2) | |
1966 | Small Permutation Problem (Easy Version) | combinatorics dp math | Statement | F1 | Pinely Round 3 (Div. 1 + Div. 2) {1909} | PROGRAMMING | 1500.0 | Editorial of Pinely Round 3 (Div. 1 + Div. 2) | |
1025 | Small Permutation Problem (Hard Version) | combinatorics dp math | Statement | F2 | Pinely Round 3 (Div. 1 + Div. 2) {1909} | PROGRAMMING | 1500.0 | Editorial of Pinely Round 3 (Div. 1 + Div. 2) | |
1203 | Blueprint for Seating | combinatorics divide and conquer fft math | Statement | B | 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) {1912} | PROGRAMMING | Tutorials (PDF) | 2000 | |
920 | Counting Prefixes | combinatorics dp math | Statement | E | Hello 2024 {1919} | PROGRAMMING | 2250.0 | 2600 | |
21824 | Forming Triangles | combinatorics implementation math | Statement | B | Educational Codeforces Round 161 (Rated for Div. 2) {1922} | PROGRAMMING | Educational Codeforces Round 161 Editorial | ||
1133 | Balanced Subsequences | combinatorics dp math | Statement | D | Codeforces Round 921 (Div. 1) {1924} | PROGRAMMING | 1750.0 | Codeforces Round 921 (Div. 1, Div. 2) Editorial | |
286 | Digital Patterns | combinatorics data structures implementation math | Statement | F | Codeforces Round 924 (Div. 2) {1928} | PROGRAMMING | 2750.0 | Codeforces Round 924 Editorial | |
1282 | 2..3...4.... Wonderful! Wonderful! | combinatorics math | Statement | E | think-cell Round 1 {1930} | PROGRAMMING | 2500.0 | think-cell Round 1 Editorial | |
21918 | Divisible Pairs | combinatorics data structures hashing math | Statement | D | Codeforces Round 925 (Div. 3) {1931} | PROGRAMMING | 125878 | ||
1786 | Farm Game | combinatorics games math | Statement | E | CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) {1942} | PROGRAMMING | 2500.0 | CodeTON Round 8 Editorial | |
508 | Bessie and Cards | combinatorics math | Statement | G | CodeTON Round 8 (Div. 1 + Div. 2, Rated, Prizes!) {1942} | PROGRAMMING | 3000.0 | CodeTON Round 8 Editorial | |
292 | Sweep Line | combinatorics games math | Statement | E | April Fools Day Contest 2024 {1952} | PROGRAMMING | April Fools Day Contest 2024 Editorial | ||
286 | Unique Strings | combinatorics dp math | Statement | F | Educational Codeforces Round 164 (Rated for Div. 2) {1954} | PROGRAMMING | Educational Codeforces Round 164 Editorial | ||
10574 | How Does the Rook Move? | combinatorics dp math | Statement | C | Codeforces Round 940 (Div. 2) and CodeCraft-23 {1957} | PROGRAMMING | 1500.0 | Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial | 1600 |
249 | Again Counting Arrays (Easy Version) | combinatorics dp fft math | Statement | E1 | Codeforces Round 942 (Div. 1) {1967} | PROGRAMMING | 1750.0 | Tutorial | 3100 |
133 | Again Counting Arrays (Hard Version) | combinatorics dp math | Statement | E2 | Codeforces Round 942 (Div. 1) {1967} | PROGRAMMING | 1000.0 | Tutorial | 3500 |
265 | Heartbeat | combinatorics dp fft math | Statement | F | Codeforces Round 958 (Div. 2) {1988} | PROGRAMMING | 3500.0 | Editorial of Codeforces Round 958 (Div. 2) | |
11800 | Expected Median | combinatorics math | Statement | F | Codeforces Round 964 (Div. 4) {1999} | PROGRAMMING | |||
14416 | Photoshoot for Gorillas | combinatorics data structures greedy math | Statement | E | Codeforces Round 966 (Div. 3) {2000} | PROGRAMMING | |||
257 | Speedbreaker Counting (Easy Version) | combinatorics dp games greedy implementation math | Statement | F1 | Codeforces Round 975 (Div. 1) {2018} | PROGRAMMING | 1500.0 | ||
2025 | Card Game | combinatorics dp fft greedy math | Statement | E | Educational Codeforces Round 170 (Rated for Div. 2) {2025} | PROGRAMMING | |||
17892 | Binomial Coefficients, Kind Of | combinatorics math | Statement | B | Educational Codeforces Round 170 (Rated for Div. 2) {2025} | PROGRAMMING | |||
191 | The Destruction of the Universe (Easy Version) | combinatorics math | Statement | G1 | Codeforces Round 979 (Div. 2) {2030} | PROGRAMMING | 3000.0 | ||
374 | Peanuts | combinatorics dp games math | Statement | F | Codeforces Round 983 (Div. 2) {2032} | PROGRAMMING | 3000.0 | ||
708 | Khayyam's Royal Decree (Easy Version) | combinatorics dp math | Statement | F1 | Rayan Programming Contest 2024 - Selection (Codeforces Round 989, Div. 1 + Div. 2) {2034} | PROGRAMMING | 2000.0 | ||
429 | Khayyam's Royal Decree (Hard Version) | combinatorics dp math | Statement | F2 | Rayan Programming Contest 2024 - Selection (Codeforces Round 989, Div. 1 + Div. 2) {2034} | PROGRAMMING | 2000.0 | ||
1999 | Shohag Loves Inversions | combinatorics constructive algorithms dp math | Statement | E | CodeTON Round 9 (Div. 1 + Div. 2, Rated, Prizes!) {2039} | PROGRAMMING | 2750.0 | ||
502 | Kevin and Matrices | combinatorics math | Statement | G | Codeforces Global Round 28 {2048} | PROGRAMMING | 2250.0 | ||
1167 | Counting Is Not Fun (Easy Version) | combinatorics data structures dfs and similar ds implementation math | Statement | F1 | Codeforces Round 1000 (Div. 2) {2063} | PROGRAMMING | 1750.0 | ||
1008 | Club of Young Aircraft Builders (easy version) | combinatorics dp math | Statement | D1 | Codeforces Round 1004 (Div. 1) {2066} | PROGRAMMING | 750.0 | ||
413 | Club of Young Aircraft Builders (hard version) | combinatorics dp math | Statement | D2 | Codeforces Round 1004 (Div. 1) {2066} | PROGRAMMING | 1250.0 | ||
1212 | Binary Subsequence Value Sum | combinatorics dp fft implementation math | Statement | C | Codeforces Round 1008 (Div. 1) {2077} | PROGRAMMING | 1500.0 | ||
1017 | Blossom | combinatorics fft math | Statement | E | Teza Round 1 (Codeforces Round 1015, Div. 1 + Div. 2) {2084} | PROGRAMMING | 2250.0 | ||
2038 | She knows... | combinatorics constructive algorithms graphs math | Statement | E | Codeforces Round 1014 (Div. 2) {2092} | PROGRAMMING | 2250.0 |