SkillAgentSearch skills...

Codeforces

Contains solutions of Codeforces problems.

Install / Use

/learn @ShazidMashrafi/Codeforces

README

Codeforces Solutions

This page contains my solutions of Codeforces problems. They are in C++ language.

<div align="center">

Index

Sorted by Problem ID

| Index | Problem ID | Problem Name | Question | Solution | | :-----: | :--------: | :----------: | :------: | :------: | | 1 | 1 A | Theatre Square | Question | Solution | 2 | 2 A | Winner | Question | Solution | 3 | 4 A | Watermelon | Question | Solution | 4 | 4 C | Registration System | Question | Solution | 5 | 5 C | Longest Regular Bracket Sequence | Question | Solution | 6 | 9 A | Die Roll | Question | Solution | 7 | 9 B | Running Student | Question | Solution | 8 | 11 A | Increasing Sequence | Question | Solution | 9 | 17 A | Noldbach problem | Question | Solution | 10 | 22 A | Second Order Statistics | Question | Solution | 11 | 34 A | Reconnaissance 2 | Question | Solution | 12 | 34 B | Sale | Question | Solution | 13 | 40 A | Find Color | Question | Solution | 14 | 41 A | Translation | Question | Solution | 15 | 44 A | Indian Summer | Question | Solution | 16 | 45 A | Codecraft III | Question | Solution | 17 | 50 A | Domino piling | Question | Solution | 18 | 59 A | Word | Question | Solution | 19 | 65 B | Harry Potter and the History of Magic | Question | Solution | 20 | 71 A | Way Too Long Words | Question | Solution | 21 | 74 A | Room Leader | Question | Solution | 22 | 96 B | Lucky Numbers (easy) | Question | Solution | 23 | 110 A | Nearly Lucky Number | Question | Solution | 24 | 112 A | Petya and Strings | Question | Solution | 25 | 116 A | Tram | Question | Solution | 26 | 118 B | Present from Lena | Question | Solution | 27 | 120 F | Spiders | Question | Solution | 28 | 122 B | Lucky Substring | Question | Solution | 29 | 122 A | Lucky Division | Question | Solution | 30 | 131 A | cAPS lOCK | Question | Solution | 31 | 136 A | Presents | Question | Solution | 32 | 141 A | Amusing Joke | Question | Solution | 33 | 144 A | Arrival of the General | Question | Solution | 34 | 148 A | Insomnia cure | Question | Solution | 35 | 151 A | Soft Drinking | Question | Solution | 36 | 154 C | Gourmet Cat | Question | Solution | 37 | 155 A | I_love_%username% | Question | Solution | 38 | 158 A | Next Round | Question | Solution | 39 | 158 B | Taxi | Question | Solution | 40 | 173 A | Rock-Paper-Scissors | Question | Solution | 41 | 189 A | Cut Ribbon | Question | Solution | 42 | 200 B | Drinks | Question | Solution | 43 | 208 A | Dubstep | Question | Solution | 44 | 217 A | Ice Skating | Question | Solution | 45 | 230 B | T-primes | Question | Solution | 46 | 231 A | Team | Question | Solution | 47 | 236 A | Boy or Girl | Question | Solution | 48 | 258 A | Little Elephant and Bits | Question | Solution | 49 | 263 A | Beautiful Matrix | Question | Solution | 50 | 266 B | Queue at the School | Question | [Solution](https://github.com/ShazidM

View on GitHub
GitHub Stars83
CategoryDevelopment
Updated1d ago
Forks13

Languages

C++

Security Score

85/100

Audited on Apr 6, 2026

No findings