Kitorp and His Love
Kitorp loves his wife Asiar(who is a problem solver as well) but he loves math more. To get his atte...
Rivalry Friends
Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...
I Am Good 2.0
I am trying to become a good guy, giving contestants as little pain as possible. So, this problem is...
Love Letters!
Lately Fahim is getting a lot of love letters. A LOT of love letters. Since he is confused about whi...
Meera and Solo Chocolates
Meera bought candies from the store. She is now going to distribute those among her N friends. She m...
Christmas Tree
Professor Rio has an amazing Christmas tree. Unlike other trees, this Christmas tree has some specia...
Is Bita Happy?
Bita has learned bitwise-operations recently. She is doing some experiments with these operations no...
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...
The Easiest Problem
Tareq Abrar is a lazy programmer. He has a friend named Aminvai, who is famous for his amazing skill...
Phi Numbers in Range!
In number theory, Euler’s phi function, denoted as ϕ(n), is an arithmetic function which counts the ...
Equation Equals Hazards
You are given the equation, GCD(A,M)=1. You have to determine whether there exists at least one inte...
Prime Team
There are n players standing in a line. Each of the players is assigned a unique jersey number. You ...
Paltu, a Prime Lover
Note that the memory limit is unusual. Paltu is a good programmer and he loves prime numbers. One da...
Beauty of AP
Solving problems is fun in competitive programming, right? So let’s solve a fun task today too :P. 1...
Perfect Points
Perfect lines are the lines y=mx+c such that m and c are positive integers. Perfect points are the p...
Life of Phi
The Great Khami is learning Number Theory. He is very excited to know that Euler's Totient Function ...
ACT 1: Ash Counting Trees
Ash Ketchum has a weird rooted tree (read Notes sections if you don't know about tree data structure...
Largest Prime
A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe...
Karim Meets Gollum
After hearing about Bilbo's Ring that he found in the Misty Mountains, Karim the Hobbit decided to e...
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 ...
Is It Perfect
Bob has an initial array D of length n . Alice is a good friend of Bob. So Bob challenges Alice to f...
M-Sequence
A sequence is called M-sequence if after removing zero or more elements from the sequence the GCD of...
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 ...
Meena O Dosto Sele
Dosto sele Dipu and his friends used to disturb Rita Apu everyday on her way to school singing , " র...
Birthday Gift for SJ
Today is your best friend SJ’s birthday. You want to buy a birthday present for her. You want to buy...
Toph uses cookies. By continuing you agree to our Cookie Policy.