Codes | ||
Template | ||
.gitignore | ||
Readme.md |
Codeforces Solutions
This repository contains my solutions of Codeforces problems. They are in C++ language.
If this repository helped you out, please consider giving it a ⭐
Index
Sorted by Problem ID
Problem ID | Problem Name | Question | Solution |
---|---|---|---|
1A | Theater Square | Question | Solution |
2A | Winner | Question | Solution |
4A | Watermelon | Question | Solution |
4C | Registration System | Question | Solution |
9A | Die Roll | Question | Solution |
11A | Increasing Sequence | Question | Solution |
22A | Second Order Statistics | Question | Solution |
34A | Reconnaissance 2 | Question | Solution |
34B | Sale | Question | Solution |
41A | Translation | Question | Solution |
45A | Codecraft III | Question | Solution |
50A | Domino Piling | Question | Solution |
59A | Word | Question | Solution |
71A | Way Too Long Words | Question | Solution |
74A | Room Leader | Question | Solution |
110A | Nearly Lucky Number | Question | Solution |
112A | Petya And Strings | Question | Solution |
116A | Tram | Question | Solution |
118B | Present from Lena | Question | Solution |
122A | Lucky Division | Question | Solution |
122B | Lucky Substring | Question | Solution |
131A | cAPS lOCK | Question | Solution |
136A | Presents | Question | Solution |
141A | Amusing Joke | Question | Solution |
144A | Arrival of the General | Question | Solution |
148A | Insomnia cure | Question | Solution |
151A | Soft Drinking | Quesion | Solution |
155A | I_love_%username% | Question | Question |
158A | Next Round | Question | Solution |
158B | Taxi | Question | Solution |
189A | Cut Ribbon | Question | Solution |
200B | Drinks | Question | Solution |
208A | Dubstep | Question | Solution |
230B | T-primes | Question | Solution |
231A | Team | Question | Solution |
236A | Boy Or Girl | Question | Solution |
263A | Beautiful Matrix | Question | Solution |
266A | Stones on the Table | Question | Solution |
266B | Queue at the School | Question | Solution |
268A | Games | Question | Solution |
271A | Beautiful Year | Question | Solution |
281A | Word Capitalization | Question | Solution |
282A | Bit++ | Question | Solution |
313A | Ilya and Bank Account | Question | Solution |
318A | Even Odds | Question | Solution |
339A | Helpful Maths | Question | Solution |
344A | Magnets | Question | Solution |
349A | Cinema Line | Question | Solution |
411A | Password Check | Question | Solution |
421A | Pasha and Hamsters | Question | Solution |
456B | Fedya and Maths | Question | Solution |
460 | Plural Form of Nouns | Question | Solution |
474B | Worms | Question | [Solution] |
486A | Calculating Function | Question | Solution |
492A | Vanya and Cubes | Question | Solution |
492B | Vanya and Lanterns | Question | Solution |
510A | Fox And Snake | Question | Solution |
525A | Vitaliy and Pie | Question | Solution |
546A | Soldier and Bananas | Question | Solution |
584A | Olesya and Rodion | Question | Solution |
599A | Patrick and Shopping | Question | Solution |
617A | Elephant | Question | Solution |
630A | Again Twenty Five! | Question | Solution |
677A | Vanya and Fence | Question | Solution |
705A | Hulk | Question | [Solution] |
706B | Interesting drink | Question | Solution |
734A | Anton and Danik | Question | Solution |
742A | Arpa’s hard exam and Mehrdad’s naive cheat | Question | Solution |
791A | Bear And Big Brother | Question | Solution |
854A | Fraction | Question | Solution |
855A | Tom Riddle's Diary | Question | Solution |
977A | Wrong Substraction | Question | Solution |
1068A | Birthday | Question | Solution |
1118B | Tanya and Candies | Question | Solution |
1144C | Two Shuffled Sequences | Question | Solution |
1196A | Three Piles of Candies | Question | Solution |
1295A | Display The Number | Question | Solution |
1296A | Array with Odd Sum | Question | Solution |
1311A | Add Odd or Subtract Even | Question | Solution |
1328A | Divisibility Problem | Question | Solution |
1341A | Nastya and Rice | Question | Solution |
1343B | Balanced Array | Question | Solution |
1360B | Honest Coach | Question | Solution |
1364A | XXXXX | Question | Solution |
1367B | Even Array | Question | Solution |
1389A | LCM Problem | Question | Solution |
1399A | Remove Smallest | Question | Solution |
1426A | Floor Number | Question | Solution |
1512A | Spy Detected! | Question | Solution |
1582B | Luntik and Subsequences | Question | Solution |
1613A | Long Comparison | Question | [Solution] |
1624B | Make AP | Question | Solution |
1633A | Div. 7 | Question | Solution |
1676A | Lucky? | Question | Solution |
1692A | Marathon | Question | Solution |
1703A | YES or YES? | Question | Solution |
1719A | Chip Game | Question | Solution |
1719B | Mathematical Circus | Question | Solution |
1721B | Deadly Lasers | Question | Solution |
1742A | Sum | Question | Solution |
1742C | Stripes | Question | Solution |
1746B | Rebellion | Question | Solution |
1748A | The Ultimate Square | Question | Solution |
1758B | XOR = Average | Question | Solution |
1760A | Medium Number | Question | Solution |
1773F | Football | Question | Solution |
1791B | Following Directions | Question | Solution |
1792A | Gaming Forces | Question | Solution |
1795B | Ideal Point | Question | Solution |
1800A | Is It a Cat? | Question | Solution |
1811A | Insert Digit | Question | Solution |
1814A | Coins | Question | Solution |
1818B | Indivisible | Question | Solution |
1822A | TubeTube Feed | Question | Solution |
1822C | Bun Lover | Question | Solution |
1828A | Divisible Array | Question | Solution |
1828B | Permutation Swap | Question | [Solution] |
1829A | Love Story | Question | Solution |
1829B | Blank Spaces | Question | Solution |
1829C | Mr. Perfectly Fine | Question | Solution |
1829D | Gold Rush | Question | Solution |
1832A | New Palindrome | Question | Solution |
1833A | Musical Puzzle | Question | Solution |
1833B | Restore the Weather | Question | Solution |
1833C | Vlad Building Beautiful Array | Question | Solution |
1837A | Grasshopper on a Line | Question | Solution |
1837B | Comparison String | Question | Solution |
1841B | Keep it Beautiful | Question | Solution |
1842C | Stripes | Question | [Solution] |
1843A | Sasha and Array Coloring | Question | Solution |
1843B | Long Long | Question | Solution |
1844A | Subtraction Game | Question | Solution |
1845A | Forbidden Integer | Question | Solution |
1846A | Rudolph and Cut the Rope | Question | Solution |
1846B | Rudolph and Tic-Tac-Toe | Question | Solution |
1846C | Rudolf and the Another Competition | Question | Solution |
1848A | Vika and Her Friends | Question | Solution |
1849A | Morning Sandwich | Question | Solution |
1849B | Monsters | Question | Solution |
1850A | To My Critics | Question | Solution |
1850B | Ten Words of Wisdom | Question | Solution |
1850C | Word on the Paper | Question | Solution |
1850D | Balanced Round | Question | Solution |
1851A | Escalator Conversations | Question | Solution |
1851B | Parity Sort | Question | Solution |
1851C | Tiles Comeback | Question | Solution |
1853A | Desorting | Question | Solution |
1855A | Dalton the Teacher | Question | Solution |
1855B | Longest Divisors Interval | Question | [Solution] |
1856B | Good Arrays | Question | Solution |
1857A | Array Coloring | Question | Solution |
1857B | Maximum Rounding | Question | Solution |
1857C | Assembly via Minimums | Question | Solution |
1858A | Buttons | Question | Solution |
1859A | United We Stand | Question | Solution |
1860A | Not a Substring | Question | [Solution] |
1862A | Gift Carpet | Question | Solution |
1862B | Sequence Game | Question | Solution |
1863A | Channel | Question | Solution |
1864A | Increasing and Decreasing | Question | Solution |
1866A | Ambitious Kid | Question | Solution |
1869A | Make It Zero | Question | Solution |
1870A | MEXanized Array | Question | Solution |
1872A | Two Vessels | Question | Solution |
1872B | The Corridor or There and Back Again | Question | Solution |
1872C | Non-coprime Split | Question | Solution |
1873A | Short Sort | Question | Solution |
1873B | Good Kid | Question | Solution |
1873C | Target Practice | Question | Solution |
1873D | 1D Eraser | Question | Solution |
1875A | Jellyfish and Undertale | Question | Solution |
1878A | How Much Does Daytona Cost? | Question | Solution |
1878B | Aleksa and Stack | Question | Solution |
1878C | Vasilije in Cacak | Question | Solution |
1879A | Rigged! | Question | Solution |
1879B | Chips on the Board | Question | Solution |
1881A | Don't Try to Count | Question | Solution |
1881B | Three Threadlets | Question | Solution |
1881C | Perfect Square | Question | Solution |
1883B | Chemistry | Question | Solution |
1894A | Secret Sport | Question | Solution |
1895A | Treasure Chest | Question | Solution |
1895B | Points and Minimum Distance | Question | Solution |
1896A | Jagged Swaps | Question | Solution |
1896B | AB Flipping | Question | Solution |
1898A | Milica and String | Question | Solution |
1899A | Game with Integers | Question | Solution |
1900A | Cover in Water | Question | Solution |
1900B | Laura and Operations | Question | Solution |
1901A | Line Trip | Question | Solution |
1902A | Binary Imbalance | Question | [Solution] |
1903A | Halloumi Boxes | Question | [Solution] |
1904A | Forked! | Question | Solution |
1904B | Collecting Game | Question | [Solution] |
1905A | Constructive Problems | Question | [Solution] |
1905B | Begginer's Zelda | Question | [Solution] |
1905C | Largest Subsequence | Question | [Solution] |
1907A | Rook | Question | Solution |
1907B | YetnotherrokenKeoard | Question | Solution |
1907C | Removal of Unattractive Pairs | Question | Solution |
1909A | Distinct Buttons | Question | [Solution] |
1912L | LOL Lovers | Question | [Solution] |
1913A | Rating Increase | Question | [Solution] |
1913B | Swap and Delete | Question | [Solution] |
1913C | Game with Multiset | Question | [Solution] |
1914A | Problemsolving Log | Question | [Solution] |
1914B | Preparing for the Contest | Question | [Solution] |
1914C | Quests | Question | [Solution] |
1914D | Three Activities | Question | [Solution] |
1914E1 | Game with Marbles (Easy Version) | Question | [Solution] |
1914E2 | Game with Marbles (Hard Version) | Question | [Solution] |
1915A | Odd One Out | Question | [Solution] |
1915B | Not Quite Latin Square | Question | [Solution] |
1915C | Can I Square? | Question | [Solution] |
1915D | Unnatural Language Processing | Question | [Solution] |
1915E | Romantic Glasses | Question | [Solution] |
1917A | Least Product | Question | [Solution] |
1917B | Erase First or Second Letter | Question | [Solution] |
🚀 About Me
I am Shazid Mashrafi.
I am currently studying Computer Science and Engineering & trying to work my way up in the programming world.
Visit my Website and Codeforces account.