For Loop FTW
You are given an integer N which can be represnted as the product of two positive integers. $ N = a_...
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...
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 ...
Easy Prime!
There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...
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...
Welcome to Criterion Rounds
The team congratulates you for participating in this contest and for being part of the journey towar...
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 ...
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...
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...
Love Letters!
Lately Fahim is getting a lot of love letters. A LOT of love letters. Since he is confused about whi...
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.