Codeforces-SolutionsA/Readme.md

112 lines
15 KiB
Markdown
Raw Normal View History

2023-06-07 22:14:02 +08:00
# Codeforces Solutions
2023-06-07 22:14:13 +08:00
This repository contains my source codes of Codeforces problems. They are in C++ language.
2023-06-07 22:14:02 +08:00
Feel free to check these codes out.
<div align="center">
2023-07-28 05:08:47 +08:00
## Index
2023-06-07 22:14:02 +08:00
2023-07-28 05:08:47 +08:00
| Problem ID | Problem Name | Question | Solution |
| :--------: | :----------: | :------: | :------: |
2023-06-08 03:28:40 +08:00
| 1A | Theater Square | [Question](https://codeforces.com/contest/1/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1A%20Theater%20Square/1A.cpp)
| 4A | Watermelon | [Question](https://codeforces.com/contest/4/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/4A%20Watermelon/4A.cpp)
2023-06-27 20:41:29 +08:00
| 4C | Registration System | [Question](https://codeforces.com/problemset/problem/4/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/4C%20Registration%20System/4C.cpp)
2023-08-03 05:31:35 +08:00
| 11A | Increasing Sequence | [Question](https://codeforces.com/contest/11/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/11A%20Increasing%20Sequence/11A.cpp)
| 22A | Second Order Statistics | [Question](https://codeforces.com/contest/22/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/22A%20Second%20Order%20Statistics/22A.cpp)
| 34A | Reconnaissance 2 | [Question](https://codeforces.com/contest/34/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/34A%20Reconnaissance%202/34A.cpp)
| 34B | Sale | [Question](https://codeforces.com/problemset/problem/34/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/34B%20Sale/34B.cpp)
2023-06-16 19:02:28 +08:00
| 41A | Translation | [Question](https://codeforces.com/problemset/problem/41/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/41A%20Translation/41A.cpp)
2023-06-08 03:28:40 +08:00
| 50A | Domino Piling | [Question](https://codeforces.com/contest/50/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/50A%20DominoPiling/50A.cpp)
2023-06-09 12:46:45 +08:00
| 59A | Word | [Question](https://codeforces.com/problemset/problem/59/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/59A%20Word/59A.cpp)
2023-06-08 03:28:40 +08:00
| 71A | Way Too Long Words | [Question](https://codeforces.com/contest/71/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/71A%20Way%20Too%20Long%20Words/71A.cpp)
2023-06-09 18:32:56 +08:00
|110A | Nearly Lucky Number | [Question](https://codeforces.com/problemset/problem/110/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/110A%20Nearly%20Lucky%20Number/110A.cpp)
2023-06-08 03:22:52 +08:00
| 112A | Petya And Strings | [Question](https://codeforces.com/contest/112/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/112A%20Petya%20And%20Strings/112A.cpp)
2023-06-14 04:34:25 +08:00
| 116A | Tram | [Question](https://codeforces.com/problemset/problem/116/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/116A%20Tram/116A.cpp)
2023-06-25 18:10:39 +08:00
| 122A | Lucky Division | [Question](https://codeforces.com/problemset/problem/122/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/122A%20Lucky%20Division/122A.cpp)
| 122B | Lucky Substring | [Question](https://codeforces.com/problemset/problem/122/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/122B%20Lucky%20Substring/122B.cpp)
2023-08-03 05:31:35 +08:00
| 131A | cAPS lOCK | [Question](https://codeforces.com/problemset/problem/131/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/131A%20cAPS%20lOCK/131A.cpp)
| 136A | Presents | [Question](https://codeforces.com/problemset/problem/136/A)) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/136A%20Presents/136A.cpp)
| 141A | Amusing Joke | [Question](https://codeforces.com/problemset/problem/141/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/141A%20Amusing%20Joke/141A.cpp)
| 144A | Arrival of the General | [Question](https://codeforces.com/contest/144/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/144A%20Arrival%20of%20the%20General/144A.cpp)
| 148A | Insomnia cure | [Question](https://codeforces.com/problemset/problem/148/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/148A%20Insomnia%20cure/148A.cpp)
| 151A | Soft Drinking | [Quesion](https://codeforces.com/problemset/problem/151/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/151A%20Soft%20Drinking/151A.cpp)
| 155A | I_love_\%username\% | [Question](https://codeforces.com/problemset/problem/155/A) | [Question](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/155A%20-%20I_love_%25username%25/155A.cpp)
2023-06-08 03:22:52 +08:00
| 158A | Next Round | [Question](https://codeforces.com/contest/158/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/158A%20Next%20Round/158A.cpp)
2023-08-03 05:31:35 +08:00
| 158B | Taxi | [Question](https://codeforces.com/problemset/problem/158/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/158B%20Taxi/158B.cpp)
| 189A | Cut Ribbon | [Question](https://codeforces.com/contest/189/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/189A%20Cut%20Ribbon/189A.cpp)
| 208A | Dubstep | [Question](https://codeforces.com/problemset/problem/208/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/208A%20Dubstep/208A.cpp)
| 230B | T-primes | [Question](https://codeforces.com/problemset/problem/230/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/230B%20T-primes/230B.cpp)
2023-06-08 03:28:40 +08:00
| 231A | Team | [Question](https://codeforces.com/contest/231/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/231A%20Team/231A.cpp)
| 236A | Boy Or Girl | [Question](https://codeforces.com/contest/236/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/236A%20Boy%20Or%20Girl/236A.cpp)
| 263A | Beautiful Matrix | [Question](https://codeforces.com/contest/263/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/263A%20Beautiful%20Matrix)
2023-06-23 23:51:34 +08:00
| 266A | Stones on the Table | [Question](https://codeforces.com/problemset/problem/266/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/266A%20Stones%20on%20the%20Table/266A.cpp)
2023-08-03 05:31:35 +08:00
| 266B | Queue at the School | [Question](https://codeforces.com/problemset/problem/266/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/266B%20Queue%20at%20the%20School/266B.cpp)
| 271A | Beautiful Year | [Question](https://codeforces.com/problemset/problem/271/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/271A%20Beautiful%20Year/271A.cpp)
2023-06-08 03:28:40 +08:00
| 281A | Word Capitalization | [Question](https://codeforces.com/contest/281/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/281A%20Word%20Capitalization/281A.cpp)
| 282A | Bit++ | [Question](https://codeforces.com/contest/282/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/282A%20Bit%2B%2B/282A.cpp)
| 339A | Helpful Maths | [Question](https://codeforces.com/contest/339/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/339A%20Helpful%20Maths/339A.cpp)
2023-06-22 22:10:03 +08:00
| 411A | Password Check | [Question](https://codeforces.com/problemset/problem/411/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/411A%20Password%20Check/411A.cpp)
2023-08-03 05:31:35 +08:00
| 486A | Calculating Function | [Question](https://codeforces.com/contest/486/problem/A) | [Solution]
| 492A | Vanya and Cubes | [Question](https://codeforces.com/problemset/problem/492/A) | [Solution]
2023-06-28 04:20:58 +08:00
| 525A | Vitaliy and Pie | [Question](https://codeforces.com/problemset/problem/525/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/525A%20Vitaliy%20and%20Pie/525A.cpp)
2023-06-08 03:28:40 +08:00
| 546A | Soldier and Bananas | [Question](https://codeforces.com/contest/546/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/546A%20Soldier%20and%20Bananas/546A.cpp)
2023-08-03 05:31:35 +08:00
| 584A | Olesya and Rodion | [Question](https://codeforces.com/contest/584/problem/A) | [Solution]
2023-06-08 03:28:40 +08:00
| 617A | Elephant | [Question](https://codeforces.com/contest/617/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/617A%20Elephant/617A.cpp)
2023-08-03 05:31:35 +08:00
| 677A | Vanya and Fence | [Question](https://codeforces.com/problemset/problem/677/A) | [Solution]
| 706B | Interesting drink | [Question](https://codeforces.com/problemset/problem/706/B) | [Solution]
2023-06-14 01:21:05 +08:00
| 734A | Anton and Danik | [Question](https://codeforces.com/problemset/problem/734/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/734A%20Anton%20and%20Danik/734A.cpp)
2023-06-08 03:28:40 +08:00
| 791A | Bear And Big Brother | [Question](https://codeforces.com/contest/791/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/791A%20Bear%20And%20Big%20Brother/791A.cpp)
2023-07-28 05:08:47 +08:00
| 977A | Wrong Substraction | [Question](https://codeforces.com/problemset/problem/977/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/977A%20Wrong%20Substraction/977A.cpp)
2023-08-03 05:31:35 +08:00
| 1311A | Add Odd or Subtract Even | [Question](https://codeforces.com/problemset/problem/1311/A) | [Solution]
| 1343B | Balanced Array | [Question](https://codeforces.com/contest/1343/problem/B) | [Solution]
| 1367B | Even Array | [Question](https://codeforces.com/problemset/problem/1367/B) | [Solution]
| 1389A | LCM Problem | [Question](https://codeforces.com/problemset/problem/1389/A) | [Solution]
| 1426A | Floor Number | [Question](https://codeforces.com/contest/1426/problem/A) | [Solution]
| 1512A | Spy Detected! | [Question](https://codeforces.com/problemset/problem/1512/A) | [Solution]
| 1624B | Make AP | [Question](https://codeforces.com/contest/1624/problem/B) | [Solution]
| 1692A | Marathon | [Question](https://codeforces.com/problemset/problem/1692/A) | [Solution]
| 1676A | Lucky? | [Question](https://codeforces.com/problemset/problem/1676/A) | [Solution]
| 1719A | Chip Game | [Question](https://codeforces.com/contest/1719/problem/A) | [Solution]
2023-06-19 00:46:10 +08:00
| 1721B | Deadly Lasers | [Question](https://codeforces.com/problemset/problem/1721/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1721B%20Deadly%20Laser/1721B.cpp)
2023-08-03 05:31:35 +08:00
| 1742A | Sum | [Question](https://codeforces.com/problemset/problem/1742/A) | [Solution]
2023-06-18 03:54:23 +08:00
| 1742C | Stripes | [Question](https://codeforces.com/problemset/problem/1742/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1742C%20Stripes/1742C.cpp)
2023-06-28 04:50:13 +08:00
| 1746B | Rebellion | [Question](https://codeforces.com/problemset/problem/1746/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1746B%20Rebellion/1746B.cpp)
2023-08-03 05:31:35 +08:00
| 1758B | XOR = Average | [Question](https://codeforces.com/problemset/problem/1758/B) | [Solution]
| 1773F | Football | [Question](https://codeforces.com/contest/1773/problem/F) | [Solution]
| 1791B | Following Directions | [Question](https://codeforces.com/problemset/problem/1791/B) | [Solution]
2023-06-08 03:22:52 +08:00
| 1792A | Gaming Forces | [Question](https://codeforces.com/problemset/problem/1792/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1792A%20Gaming%20Forces/1792A.cpp)
2023-08-03 05:31:35 +08:00
| 1800A | Is It a Cat? | [Question](https://codeforces.com/contest/1800/problem/A) | [Solution]
| 1811A | Insert Digit | [Question](https://codeforces.com/problemset/problem/1811/A) | [Solution]
2023-06-28 04:40:30 +08:00
| 1818B | Indivisible | [Question](https://codeforces.com/problemset/problem/1818/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1818B%20Indivisible/1818B.cpp)
2023-07-28 05:08:47 +08:00
| 1822A | TubeTube Feed | [Question](https://codeforces.com/problemset/problem/1822/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1822A%20TubeTube%20Feed/1822A.cpp)
2023-08-03 05:31:35 +08:00
| 1828A | Divisible Array | [Question](https://codeforces.com/problemset/problem/1828/A) | [Solution]
| 1828A | Divisible Array | [Question](https://codeforces.com/problemset/problem/1828/A) | [Solution]
2023-06-08 03:28:40 +08:00
| 1829A | Love Story | [Question](https://codeforces.com/contest/1829/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/1829A%20Love%20Story)
| 1829B | Blank Spaces | [Question](https://codeforces.com/contest/1829/problem/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1829B%20Blank%20Spaces/1829B.cpp)
2023-06-23 03:57:46 +08:00
| 1829C | Mr. Perfectly Fine | [Question](https://codeforces.com/problemset/problem/1829/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1829C%20Mr.%20Perfectly%20Fine/1829C.cpp)
| 1829D | Gold Rush | [Question](https://codeforces.com/problemset/problem/1829/D) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1829D%20Gold%20Rush/1829D.cpp)
2023-06-08 03:28:40 +08:00
| 1833C | Vlad Building Beautiful Array | [Question](https://codeforces.com/contest/1833/problem/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1833C%20Vlad%20Building%20Beautiful%20Array/1833C.cpp)
2023-08-03 05:31:35 +08:00
| 1841B | Keep it Beautiful | [Question](https://codeforces.com/problemset/problem/1841/B) | [Solution]
2023-06-23 16:35:12 +08:00
| 1843A | Sasha and Array Coloring | [Question](https://codeforces.com/contest/1843/problem/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/blob/master/1843A%20Sasha%20and%20Array%20Coloring/1843A.cpp)
2023-08-03 05:31:35 +08:00
| 1844A | Subtraction Game | [Question](https://codeforces.com/contest/1844/problem/A) | [Solution]
| 1845A | Forbidden Integer | [Question](https://codeforces.com/problemset/problem/1845/A) | [Solution]
| 1846A | Rudolph and Cut the Rope | [Question](https://codeforces.com/contest/1846/problem/A) | [Solution]
| 1846B | Rudolph and Tic-Tac-Toe | [Question](https://codeforces.com/contest/1846/problem/B) | [Solution]
| 1846C | Rudolf and the Another Competition | [Question](https://codeforces.com/contest/1846/problem/C) | [Solution]
| 1848A | Vika and Her Friends | [Question](https://codeforces.com/contest/1848/problem/A) | [Solution]
| 1849A | Morning Sandwich | [Question](https://codeforces.com/problemset/problem/1849/A) | [Solution]
| 1850A | To My Critics | [Question](https://codeforces.com/contest/1850/problem/A) | [Solution]
| 1850B | Ten Words of Wisdom | [Question](https://codeforces.com/contest/1850/problem/B) | [Solution]
| 1850C | Word on the Paper | [Question](https://codeforces.com/contest/1850/problem/C) | [Solution]
| 1851A | Escalator Conversations | [Question](https://codeforces.com/problemset/problem/1851/A) | [Solution]
| 1851B | Parity Sort | [Question](https://codeforces.com/problemset/problem/1851/B) | [Solution]
| 1853A | Desorting | [Question](https://codeforces.com/contest/1853/problem/A) | [Solution]
| 1855A | Dalton the Teacher | [Question](https://codeforces.com/contest/1855/problem/A) | [Solution]
2023-06-23 16:35:12 +08:00
</div>
2023-06-07 22:14:02 +08:00
## 🚀 About Me
2023-06-23 16:38:08 +08:00
I am Shazid, studying Computer Science and Engineering. I am trying to work my way up in the programming world.
2023-06-09 18:36:27 +08:00
Here is my [Github account](https://github.com/ShazidMashrafi) & my [Codeforces account ](https://codeforces.com/profile/shazid456).
2023-06-07 22:14:02 +08:00
Want to know more about me? Visit [My website](https://shazidmashrafi.com).