Skip to content

My solutions of some problems from various competitive programming platforms.

Notifications You must be signed in to change notification settings

mahfuzhasanreza/cp-problem-solving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 

Repository files navigation

My Solutions

My solutions of some problems from various competitive programming platforms.

Codeforces Solutions

# Difficulty Problem Link Solution Link
1 800 A. Hit the Lottery https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/996A_Hit_the_Lottery.cpp
2 800 A. Wrong Subtraction https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/977A_Wrong_Subtraction.cpp
3 900 A. Football https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/96A_Football.cpp
4 800 A. Paper Airplanes https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/965A_Paper_Airplanes.cpp
5 900 A. Modular Exponentiation https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/913A_Modular_Exponentiation.cpp
6 800 A. Bear and Big Brother https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/791A_Bear_and_Big_Brother.cpp
7 800 A. Anton and Danik https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/734A_Anton_and_Danik.cpp
8 800 A. The New Year: Meeting Friends https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/723A_The_New_Year%3A_Meeting_Friends.cpp
9 800 A. Way Too Long Words https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/71A_Way_Too_Long_Words.cpp
10 1000 A. Young Physicist https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/69A_Young_Physicist.cpp
11 800 A. Vanya and Fence https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/677A_Vanya_and_Fence.cpp
12 800 A. Again Twenty Five! https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/630A_Again_Twenty_Five!.cpp
13 800 A. Ultra-Fast Mathematician https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/61A_Ultra_Fast_Mathematician.cpp
14 800 A. Elephant https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/617A_Elephant.cpp
15 800 A. Word https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/59A_Word.cpp
16 1000 A. Chat room https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/58A_Chat_room.cpp
17 900 A. Kefa and First Steps https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/580A_Kefa_and_First_Steps.cpp
18 800 A. Soldier and Bananas https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/546A_Soldier_and_Bananas.cpp
19 800 A. Pangram https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/520A_Pangram.cpp
20 800 A. Fox And Snake https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/510A_Fox_And_Snake.cpp
21 800 A. Domino piling https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/50A_Domino_Piling.cpp
22 800 A. Watermelon https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/4A_Watermelon.cpp
23 800 A. Calculating Function https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/486A_Calculating_Function.cpp
24 1000 A. Expression https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/479A_Expression.cpp
25 800 A. I Wanna Be the Guy https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/469A_I_Wanna_Be_the_Guy.cpp
26 800 A. George and Accommodation https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/467A_George_and_Accommodation.cpp
27 800 A. Anton and Letters https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/443A_Anton_and_Letters.cpp
28 800 A. Translation https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/41A_Translation.cpp
29 900 A. Gravity Flip https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/405A_Gravity_Flip.cpp
30 800 A. Magnets https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/344A_Magnets.cpp
31 800 A. Helpful Maths https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/339A_Helpful_Maths.cpp
32 900 A. Even Odds https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/318A_Even_Odds.cpp
33 900 A. Ilya and Bank Account https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/313A_Ilya_and_Bank_Account.cpp
34 800 A. Bit++ https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/282A_Bit%2B%2B.cpp
35 800 A. Word Capitalization https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/281A_Word_Capitalization.cpp
36 800 A. Beautiful Year https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/271A_Beautiful_Year.cpp
37 800 B. Queue at the School https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/266B_Queue_at_the_School.cpp
38 800 A. Stones on the Table https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/266A_Stones_on_the_Table.cpp
39 800 A. Beautiful Matrix https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/263A_Beautiful_Matrix.cpp
40 1300 A. IQ test https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/25A_IQ_test.cpp
41 800 A. Boy or Girl https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/236A_Boy_or_Girl.cpp
42 800 A. Team https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/231A_Team.cpp
43 1300 B. T-primes https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/230B_T_primes.cpp
44 800 A. Is your horseshoe on the other hoof? https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/228A_Is_your_horseshoe_on_the_other_hoof%3F.cpp
45 900 A. Dubstep https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/208A_Dubstep.cpp
46 800 B. Drinks https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/200B_Drinks.cpp
47 1000 A. Theatre Square https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1A_Theatre_Square.cpp
48 800 A. The Good Array https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1839A_The_Good_Array.cpp
49 800 A. Grasshopper on a Line https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1837A_Grasshopper_on_a_Line.cpp
50 800 A. Love Story https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1829A_Love_Story.cpp
51 800 A. Sum https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1742A_%20Sum.cpp
52 800 A. YES or YES? https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1703A_YES_or_YES%3F.cpp
53 800 A. Lucky? https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1676A_Lucky%3F.cpp
54 900 A. Twins https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/160A_Twins.cpp
55 1100 B. Taxi https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/158B_Taxi.cpp
56 800 A. Next Round https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/158A_Next_Round.cpp
57 800 A. Insomnia cure https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/148A_Insomnia_cure.cpp
58 800 A. Amusing Joke https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/141A_Amusing_Joke.cpp
59 800 A. Presents https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/136A_Presents.cpp
60 900 A. HQ9+ https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/133A_HQ9%2B.cpp
61 800 A. Divisibility Problem https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1328A_Divisibility_Problem.cpp
62 1000 A. cAPS lOCK https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/131A_cAPS_lOCK.cpp
63 1000 A. Lucky Division https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/122A_Lucky_Division.cpp
64 1000 A. String Task https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/118A_String_Task.cpp
65 800 A. Vus the Cossack and a Contest https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1186A_Vus_the_Cossack_and_a_Contest.cpp
66 800 A. Tram https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/116A_Tram.cpp
67 800 A. Petya and Strings https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/112A_Petya_and_Strings.cpp
68 800 A. Nearly Lucky Number https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/110A_Nearly_Lucky_Number.cpp
69 800 A. In Search of an Easy Problem https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1030A_In_Search_of_an_Easy_Problem.cpp
70 900 B. Two-gram https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/977B_Two_gram.cpp
71 800 A. Musical Puzzle https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1833A_Musical_Puzzle.cpp
72 800 A. Division? https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1669A_Division.cpp
73 900 A. Odd Divisor https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1475A_Odd_Divisor.cpp
74 1000 A. Minimum Integer https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1101A_Minimum_Integer.cpp
75 800 A. Juggling Letters https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1397A_Juggling_Letters.cpp
76 800 C. Sum in Binary Tree https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1843C_Sum_in_Binary_Tree.cpp
77 800 B. Long Long https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1843B_Long_Long.cpp
78 800 A. Sasha and Array Coloring https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1843A_Sasha_and_Array_Coloring.cpp
79 1300 B. Array Sharpening https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1291B_Array_Sharpening.cpp
80 900 A. Distance and Axis https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1401A_Distance_and_Axis.cpp
81 900 B. Restore the Weather https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1833B_Restore_the_Weather.cpp
82 800 A. Marathon https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1692A_Marathon.cpp
83 800 A. Cipher Shifer https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1840A_Cipher_Shifer.cpp
84 800 A. Arrival of the General https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/144A_Arrival_of_the_General.cpp
85 800 A. Anton and Polyhedrons https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/785A_Anton_and_Polyhedrons.cpp
86 800 A. Sum of Round Numbers https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1352A_Sum_of_Round_Numbers.cpp
87 800 A. Soft Drinking https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/151A_Soft_Drinking.cpp
88 1200 A. Chewbaсca and Number https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/514A_Chewba%D1%81ca_and_Number.cpp
89 800 B. Minority https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1633B_Minority.cpp
90 800 A. Div. 7 https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1633A_Div_7.cpp
91 800 A. Erasing Zeroes https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1303A_Erasing_Zeroes.cpp
92 1000 B. Assigning to Classes https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1300B_Assigning_to_Classes.cpp
93 800 B. Fix You https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1391B_Fix_You.cpp
94 800 A. Repeating Cipher https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1095A_Repeating_Cipher.cpp
95 800 A. Mahmoud and Ehab and the even-odd gam https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/959A_Mahmoud_and_Ehab_and_the_even_odd_game.cpp
96 800 A. LCM Problem https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1389A_LCM_Problem.cpp
97 800 A. Ichihime and Triangle https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1337A_Ichihime_and_Triangle.cpp
98 800 A. Boring Apartments https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1433A_Boring_Apartments.cpp
99 800 A. Vanya and Cubes https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/492A_Vanya_and_Cubes.cpp
100 800 A. Gennady and a Card Game https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1097A_Gennady_and_a_Card_Game.cpp
101 800 A. Maximum Increase https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/702A_Maximum_Increase.cpp
102 800 A. C+= https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1368A_C%2B%3D.cpp
103 800 A. Coins https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1814A_Coins.cpp
104 1000 A - Diverse Substring https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1073A_Diverse_Substring.cpp
105 800 A. Forbidden Integer https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1845A_Forbidden_Integer.cpp
106 900 A. Lucky Numbers https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1808A_Lucky_Numbers.cpp
107 1400 A. Adding Digits https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/260A_Adding_Digits.cpp
108 1100 B. Interesting drink https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/706B_Interesting_drink.cpp
109 800 A. Rudolph and Cut the Rope https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1846A_Rudolph_and_Cut_the_Rope.cpp
110 800 B. Rudolph and Tic-Tac-Toe https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1846B_Rudolph_and_Tic_Tac_Toe.cpp
111 800 A. The Man who became a God https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1847A_The_Man_who_became_a_God.cpp
112 800 A. A+B? https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1772A_A%2BB%3F.cpp
113 800 B. Increasing https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1742B_Increasing.cpp
114 1000 A. Football https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/43A_Football.cpp
115 1100 E. Eating Queries https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1676E_Eating_Queries.cpp
116 800 B. Borze https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/32B_Borze.cpp
117 800 B. Ten Words of Wisdom https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1850B_Ten_Words_of_Wisdom.cpp
118 800 A. To My Critics https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1850A_To_My_Critics.cpp
119 800 C. Word on the Paper https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1850C_Word_on_the_Paper.cpp
120 1000 C. Best Binary String https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1837C_Best_Binary_String.cpp
121 800 C. Vlad Building Beautiful Array https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1833C_Vlad_Building_Beautiful_Array.cpp
122 900 B. Comparison String https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1837B_Comparison_String.cpp
123 800 A. Blackboard List https://github.com/mahfuzhasanreza/CP-ProblemSolving/blob/main/Codeforces/1838A_Blackboard_List.cpp
... ... ... ...
... ... ... ...
... ... ... ...

About

My solutions of some problems from various competitive programming platforms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages