Magic Number Count
Magic number is an integer number, which is only divisible by itself and total number of divisor wil...
Magic Square
A little boy Towhid is good at mathematics. He solves a lot of mathematical equation regularly. He i...
Mag the Mighty Kaidul
The winter is about to come. Mag the Mighty Kaidul is waiting for it for days. It is his favorite se...
Making Friends
Byang is going to join a new school. His new class has N students. Each of the students are identifi...
Many Paths, Many Costs
Alice and Bob are visiting Byteland. They are observing the map of this country. Surprisingly, the m...
Marbles Per Second
You have a rooted tree of n nodes. If we traverse the tree from the root, let’s say the traversing o...
Math and Watermelons
Your friend has M watermelons. He doesn't want to share them with anyone, but let's imagine he would...
Maximum Distance
You know it’s hard seeing your favorite person being interested in another one instead of you. At th...
Meena Meets The Marauders
December 14, 1975 Hogwarts School of Witchcraft and Wizardry It’s been a long long day. The Marauder...
Meena O Dosto Sele
Dosto sele Dipu and his friends used to disturb Rita Apu everyday on her way to school singing , " র...
Meera and Solo Chocolates
Meera bought candies from the store. She is now going to distribute those among her N friends. She m...
Meeting Place
There is an N*N grid where (r,c) denotes a cell number where r means row number, c means column numb...
Meeting Table
Let there be three groups of people waiting to attend a meeting. There are $\textbf N$ people in eac...
Mina and Raju
Everyone know about Mina & Raju. They are siblings as well as good friend. The friend-circle of Mina...
Mirror World
Imagine a world inside mirror, where everything becomes reverse. Left hand becomes right hand, right...
Missing Number
Given the sum of four numbers and three of those numbers, find the missing number. All four numbers ...
Misti Chor
Bhootu likes to eat misti. As he is a mischievous kid, he has decided to steal misti from the nearby...
Mixed Fractions
Given an improper fraction (as the numerator $N$ and the denominator $D$), determine and print it in...
ML Vs AI
Nowadays, CS students try to learn Machine Learning and Artificial Intelligence even before learning...
Modulo
Let's get straight into the problem. In ths problem, here will be multiple test cases. In each test ...
Morona Virus Arrived
"Cover your nose and mouth with a bent elbow or tissue when you sneeze or cough." World has defeated...
Most Difficult Problem Ever
You are given a function like below: long long F(int A, int B, int C, long long x) { long long res =...
Mr. Ant and His Problem
Mr. Ant has 3 boxes and the infinite number of marbles. Now he wants to know the number of ways he c...
Mr Makor And His Friends
Mr Makor has a set S of n integers. He calls a sequence of length k special if every element of the ...
Mr Max Count Sum
Mr Max , Mr Sum and Mr Count are three neighbours. They have a common enemy, an old man living in th...
Toph uses cookies. By continuing you agree to our Cookie Policy.