Go to file
ShazidMahsrafi 09eaf054cd added 17A
2024-01-20 00:26:14 +06:00
Codes added 17A 2024-01-20 00:26:14 +06:00
Readme Generator Assets added index header 2023-12-31 17:48:15 +06:00
Template update template 2024-01-04 17:50:18 +06:00
.gitignore added 1919A and B 2024-01-10 00:13:50 +06:00
Readme.md added 17A 2024-01-20 00:26:14 +06:00

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

Index Problem ID Problem Name Question Solution
1 1 A Theater Square Question Solution
2 2 A Winner Question Solution
3 4 A Watermelon Question Solution
4 4 C Registration System Question Solution
5 9 A Die Roll Question Solution
6 11 A Increasing Sequence Question Solution
7 17 A Noldbach problem Question Solution
8 22 A Second Order Statistics Question Solution
9 34 A Reconnaissance 2 Question Solution
10 34 B Sale Question Solution
11 41 A Translation Question Solution
12 45 A Codecraft III Question Solution
13 50 A DominoPiling Question Solution
14 59 A Word Question Solution
15 71 A Way Too Long Words Question Solution
16 74 A Room Leader Question Solution
17 110 A Nearly Lucky Number Question Solution
18 112 A Petya And Strings Question Solution
19 116 A Tram Question Solution
20 118 B Present from Lena Question Solution
21 122 A Lucky Division Question Solution
22 122 B Lucky Substring Question Solution
23 131 A cAPS lOCK Question Solution
24 136 A Presents Question Solution
25 141 A Amusing Joke Question Solution
26 144 A Arrival of the General Question Solution
27 148 A Insomnia cure Question Solution
28 151 A Soft Drinking Question Solution
29 155 A I_love_%username% Question Solution
30 158 A Next Round Question Solution
31 158 B Taxi Question Solution
32 189 A Cut Ribbon Question Solution
33 200 B Drinks Question Solution
34 208 A Dubstep Question Solution
35 230 B T-primes Question Solution
36 231 A Team Question Solution
37 236 A Boy Or Girl Question Solution
38 263 A Beautiful Matrix Question Solution
39 266 A Stones on the Table Question Solution
40 266 B Queue at the School Question Solution
41 268 A Games Question Solution
42 271 A Beautiful Year Question Solution
43 281 A Word Capitalization Question Solution
44 282 A Bit++ Question Solution
45 313 A Ilya and Bank Account Question Solution
46 318 A Even Odds Question Solution
47 339 A Helpful Maths Question Solution
48 344 A Magnets Question Solution
49 349 A Cinema Line Question Solution
50 411 A Password Check Question Solution
51 421 A Pasha and Hamsters Question Solution
52 456 B Fedya and Maths Question Solution
53 474 B Worms Question Solution
54 486 A Calculating Function Question Solution
55 492 A Vanya and Cubes Question Solution
56 492 B Vanya and Lanterns Question Solution
57 510 A Fox And Snake Question Solution
58 525 A Vitaliy and Pie Question Solution
59 546 A Soldier and Bananas Question Solution
60 584 A Olesya and Rodion Question Solution
61 599 A Patrick and Shopping Question Solution
62 617 A Elephant Question Solution
63 630 A Again Twenty Five! Question Solution
64 677 A Vanya and Fence Question Solution
65 705 A Hulk Question Solution
66 706 B Interesting drink Question Solution
67 734 A Anton and Danik Question Solution
68 742 A Arpas hard exam and Mehrdads naive cheat Question Solution
69 791 A Bear And Big Brother Question Solution
70 854 A Fraction Question Solution
71 855 A Tom Riddle's Diary Question Solution
72 977 A Wrong Substraction Question Solution
73 1068 A Birthday Question Solution
74 1088 A Ehab and another construction problem Question Solution
75 1118 B Tanya and Candies Question Solution
76 1144 C Two Shuffled Sequences Question Solution
77 1196 A Three Piles of Candies Question Solution
78 1295 A Display The Number Question Solution
79 1296 A Array with Odd Sum Question Solution
80 1311 A Add Odd or Subtract Even Question Solution
81 1328 A Divisibility Problem Question Solution
82 1341 A Nastya and Rice Question Solution
83 1343 B Balanced Array Question Solution
84 1360 B Honest Coach Question Solution
85 1364 A XXXXX Question Solution
86 1367 B Even Array Question Solution
87 1389 A LCM Problem Question Solution
88 1399 A Remove Smallest Question Solution
89 1426 A Floor Number Question Solution
90 1512 A Spy Detected! Question Solution
91 1582 B Luntik and Subsequences Question Solution
92 1624 B Make AP Question Solution
93 1633 A Div. 7 Question Solution
94 1676 A Lucky Question Solution
95 1692 A Marathon Question Solution
96 1703 A YES or YES Question Solution
97 1719 A Chip Game Question Solution
98 1719 B Mathematical Circus Question Solution
99 1721 B Deadly Laser Question Solution
100 1742 A Sum Question Solution
101 1742 C Stripes Question Solution
102 1746 B Rebellion Question Solution
103 1748 A The Ultimate Square Question Solution
104 1758 B XOR = Average Question Solution
105 1760 A Medium Number Question Solution
106 1766 A Extremely Round Question Solution
107 1773 F Football Question Solution
108 1783 A Make it Beautiful Question Solution
109 1788 A One and Two Question Solution
110 1789 A Serval and Mocha's Array Question Solution
111 1791 B Following Directions Question Solution
112 1791 C Prepend and Append Question Solution
113 1792 A Gaming Forces Question Solution
114 1795 B Ideal Point Question Solution
115 1800 A Is It a Cat Question Solution
116 1805 A We Need the Zero Question Solution
117 1806 A Walking Master Question Solution
118 1811 A Insert Digit Question Solution
119 1814 A Coins Question Solution
120 1818 B Indivisible Question Solution
121 1822 A TubeTube Feed Question Solution
122 1822 C Bun Lover Question Solution
123 1828 A Divisible Array Question Solution
124 1828 B Permutation Swap Question Solution
125 1829 A Love Story Question Solution
126 1829 B Blank Spaces Question Solution
127 1829 C Mr. Perfectly Fine Question Solution
128 1829 D Gold Rush Question Solution
129 1831 A Twin Permutations Question Solution
130 1832 A New Palindrome Question Solution
131 1833 A Musical Puzzle Question Solution
132 1833 B Restore the Weather Question Solution
133 1833 C Vlad Building Beautiful Array Question Solution
134 1834 A Unit Array Question Solution
135 1837 A Grasshopper on a Line Question Solution
136 1837 B Comparison String Question Solution
137 1841 B Keep it Beautiful Question Solution
138 1843 A Sasha and Array Coloring Question Solution
139 1843 B Long Long Question Solution
140 1844 A Subtraction Game Question Solution
141 1845 A Forbidden Integer Question Solution
142 1846 A Rudolph and Cut the Rope Question Solution
143 1846 B Rudolph and Tic-Tac-Toe Question Solution
144 1846 C Rudolf and the Another Competition Question Solution
145 1848 A Vika and Her Friends Question Solution
146 1849 A Morning Sandwich Question Solution
147 1849 B Monsters Question Solution
148 1850 A To My Critics Question Solution
149 1850 B Ten Words of Wisdom Question Solution
150 1850 C Word on the Paper Question Solution
151 1850 D Balanced Round Question Solution
152 1851 A Escalator Conversations Question Solution
153 1851 B Parity Sort Question Solution
154 1851 C Tiles Comeback Question Solution
155 1853 A Desorting Question Solution
156 1855 A Dalton the Teacher Question Solution
157 1855 B Longest Divisors Interval Question Solution
158 1856 B Good Arrays Question Solution
159 1857 A Array Coloring Question Solution
160 1857 B Maximum Rounding Question Solution
161 1857 C Assembly via Minimums Question Solution
162 1858 A Buttons Question Solution
163 1859 A United We Stand Question Solution
164 1860 A Not a Substring Question Solution
165 1862 A Gift Carpet Question Solution
166 1862 B Sequence Game Question Solution
167 1863 A Channel Question Solution
168 1864 A Increasing and Decreasing Question Solution
169 1866 A Ambitious Kid Question Solution
170 1869 A Make It Zero Question Solution
171 1870 A MEXanized Array Question Solution
172 1872 A Two Vessels Question Solution
173 1872 B The Corridor or There and Back Again Question Solution
174 1872 C Non-coprime Split Question Solution
175 1873 A Short Sort Question Solution
176 1873 B Good Kid Question Solution
177 1873 C Target Practice Question Solution
178 1873 D 1D Eraser Question Solution
179 1875 A Jellyfish and Undertale Question Solution
180 1877 A Goals of Victory Question Solution
181 1878 A How Much Does Daytona Cost Question Solution
182 1878 B Aleksa and Stack Question Solution
183 1878 C Vasilije in Cacak Question Solution
184 1879 A Rigged! Question Solution
185 1879 B Chips on the Board Question Solution
186 1881 A Don't Try to Count Question Solution
187 1881 B Three Threadlets Question Solution
188 1881 C Perfect Square Question Solution
189 1883 B Chemistry Question Solution
190 1894 A Secret Sport Question Solution
191 1895 A Treasure Chest Question Solution
192 1895 B Points and Minimum Distance Question Solution
193 1896 A Jagged Swaps Question Solution
194 1896 B AB Flipping Question Solution
195 1898 A Milica and String Question Solution
196 1899 A Game with Integers Question Solution
197 1900 A Cover in Water Question Solution
198 1900 B Laura and Operations Question Solution
199 1901 A Line Trip Question Solution
200 1902 A Binary Imbalance Question Solution
201 1903 A Halloumi Boxes Question Solution
202 1904 A Forked! Question Solution
203 1904 B Collecting Game Question Solution
204 1905 A Constructive Problems Question Solution
205 1905 B Begginer's Zelda Question Solution
206 1905 C Largest Subsequence Question Solution
207 1907 A Rook Question Solution
208 1907 B YetnotherrokenKeoard Question Solution
209 1907 C Removal of Unattractive Pairs Question Solution
210 1909 A Distinct Buttons Question Solution
211 1912 L LOL Lovers Question Solution
212 1913 A Rating Increase Question Solution
213 1913 B Swap and Delete Question Solution
214 1913 C Game with Multiset Question Solution
215 1914 A Problemsolving Log Question Solution
216 1914 B Preparing for the Contest Question Solution
217 1914 C Quests Question Solution
218 1914 D Three Activities Question Solution
219 1914 E1 Game with Marbles (Easy Version) Question Solution
220 1914 E2 Game with Marbles (Hard Version) Question Solution
221 1915 A Odd One Out Question Solution
222 1915 B Not Quite Latin Square Question Solution
223 1915 C Can I Square Question Solution
224 1915 D Unnatural Language Processing Question Solution
225 1915 E Romantic Glasses Question Solution
226 1916 A 2023 Question Solution
227 1916 B Two Divisors Question Solution
228 1916 C Training Before the Olympiad Question Solution
229 1916 D Mathematical Problem Question Solution
230 1917 A Least Product Question Solution
231 1917 B Erase First or Second Letter Question Solution
232 1919 A Wallet Exchange Question Solution
233 1919 B Plus-Minus Split Question Solution
234 1920 A Satisfying Constraints Question Solution
235 1921 A Square Question Solution
236 1921 B Arranging Cats Question Solution
237 1921 C Sending Messages Question Solution
238 1921 D Very Different Array Question Solution
239 19020 B Summation Game 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.