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...
Left Prime
Prime numbers are the ones which can only be divided by 1 and the number itself. 2, 3, 5, 7, 11, 13 ...
Kitchen Decorate
Shira has now decided to decorate her kitchen of height H and width W more precisely, she wants to t...
Birthday Surprise
Adnan bhai, Priyom dada and Shuvo bhai are the members of MU_Kheloars. They recently got graduated a...
The Greedy Mathematician
Once upon a time, there lived a man called Mahi the mathematician. He was banned from his kingdom be...
Secret Meeting
The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev...
I Am Good 2.0
I am trying to become a good guy, giving contestants as little pain as possible. So, this problem is...
GCD Plus LCM
In this problem you will be given two integers a, b. You have to answer if GCD(a,b)+LCM(a,b)=a+b is ...
Crypto-Number
Walt and Gus have a great rivalry. Recently Gus has developed a cryptographic system. Walt is trying...
Love Letters!
Lately Fahim is getting a lot of love letters. A LOT of love letters. Since he is confused about whi...
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 ...
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 ...
Paltu, a Prime Lover
Note that the memory limit is unusual. Paltu is a good programmer and he loves prime numbers. One da...
Zacob the Batsman
It's known that Zacob is a reliable batsman of LU CSE Cricket Team. Also as long as he is on the cre...
NAC-SAC Game! (Easy)
Akash and Guru are playing an interesting game. They are standing at the two ends of the NAC-SAC bri...
Is It a Perfect Square?
Given some numbers, can you tell, if the product of these numbers are a perfect square or not? A num...
No Onion, No Cry
-Onions make us cry, don't they? They can make us happy too. -How? -Read the statement carefully! I...
K-Th Root
You will be given Q queries. In each query, you will be given two positive integers A and B. You hav...
Life of Phi
The Great Khami is learning Number Theory. He is very excited to know that Euler's Totient Function ...
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...
Magician's Offer!
Rosi Vidmun is a greedy landlord who likes to grab as much land as he can. Currently he has P square...
Co-Prime Enemy Pair
Two integers A and B are known as co-prime or relatively prime if their greatest common divisor GCD ...
Toph uses cookies. By continuing you agree to our Cookie Policy.