How Many Pairs of LCM?
A Common Multiple of two integers a and b is an integer X, such that both a and b divides X. A numbe...
The Game Is Back On
Moriarty is bored again. When he gets bored, the only thing he wants to do is play with Sherlock. So...
Kitchen Decorate
Shira has now decided to decorate her kitchen of height H and width W more precisely, she wants to t...
Bad Cook
Mr. Meme has recently moved to a foreign country named "Gloryland" for study purpose. There, he has ...
Sofdor Ali's Restaurant
One of Sofdor Ali’s greatest accomplishment was his Biriyani restaurant! Unlike the traditional rest...
Is Bita Happy?
Bita has learned bitwise-operations recently. She is doing some experiments with these operations no...
The Greedy Mathematician
Once upon a time, there lived a man called Mahi the mathematician. He was banned from his kingdom be...
Irregular Is Tough, Regular Is Easy!
Dr. Bari is working on some chemical formation. He believes that chemicals and shapes that are regul...
I Am Good 2.0
I am trying to become a good guy, giving contestants as little pain as possible. So, this problem is...
This Is Too Hard ☹
Many many years ago there was a small country. And all the people there were very weird. They liked ...
The Easiest Problem
Tareq Abrar is a lazy programmer. He has a friend named Aminvai, who is famous for his amazing skill...
How Many Kids Are in the Circle?
A group of kids are standing in a circle and playing catch the ball. For fair play, they always main...
Playing With Aladdin
Aladdin is a fictional character and the titular protagonist of Walt Disney Pictures' 31st animated ...
Bad Neighbors 2
As some of you already know, Nocu City has a history of having bad neighbors. These bad ones, take a...
Sum of GCD and LCM
The greatest common divisor (GCD) of two integers, is the largest integer that divides both of the i...
The Story of Two Friends
There are two friends F1 and F2 in a city. They both are student of FCB High School. Also, they resi...
Solve This Giveaway Problem First
This problem is straightforward and easy. You will be given two integers N, P and a list L of positi...
Beauty of AP
Solving problems is fun in competitive programming, right? So let’s solve a fun task today too :P. 1...
Sofdor Ali and Radioactivity
Sofdor Ali is the craziest and clumsiest scientist in Bangladesh. He tries to maintain the safety me...
Perfect Points
Perfect lines are the lines y=mx+c such that m and c are positive integers. Perfect points are the p...
Composite Facts
Let's define two functions F and S: F(n) = 1 + n! S(n,m) = Sum of first m non-prime integers which ...
M-Sequence
A sequence is called M-sequence if after removing zero or more elements from the sequence the GCD of...
Game of Palindromes
In a popular computer game, Game of Palindromes also known as GOP there is a city called Palindesh. ...
Dilu's Library
Dilu is a young boy who loves mathematics. He recently learned how to code. He was interested in sol...
Delete the Array
There is an array of size n. You will be given an integer x. In each move you have to subtract x or ...
Toph uses cookies. By continuing you agree to our Cookie Policy.