Game Show
Alex is participating in a game show. Mr. Phil is the host of the game. Alex is provided with an arr...
Omae Wa Mou Shindeiru
Itachi and Sasuke are trying to beat Kabuto, the caster of an awesome magical spell (or you can say ...
Complex Tashreef
Tashreef finally received the Zuinness Journal of Galactic records recognition for being the most co...
Christmas Tree
Professor Rio has an amazing Christmas tree. Unlike other trees, this Christmas tree has some specia...
Lucky Shirt
Marjokes is a very famous comedy personality in Byteland. He is a poet, a writer, a singer and an ac...
Yet Another Hello World
The greatest company, Pied Piper, is developing encryption systems. The company has already built Md...
Joker's GCD Test
Joker has a sequence P of n integers. Each two elements in the sequence are pairwise distinct. He de...
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 ...
The Greedy Mathematician
Once upon a time, there lived a man called Mahi the mathematician. He was banned from his kingdom be...
Divisible LCM
You have a sequence a1​, a2​, a3​, …, an​ of n integers and q queries. In each query, you are given ...
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 ...
The Cipher
In an ancient civilization, shrouded in the mists of time, there existed a group of mathematicians k...
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...
Dividing the Gifts
Today is a very good day in CSEmpur because Tuktuki has bought N gifts! Tuktuki wants to give these ...
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 ...
Quarantine!!!
China is one of the strongest countries in the world in the sense of economy and military technology...
I Did Not Do the Assignment
Professor Petr is very angry over some of his students now-a-days for not doing assignment. He wants...
Playing With Aladdin
Aladdin is a fictional character and the titular protagonist of Walt Disney Pictures' 31st animated ...
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...
A Lack of Common Divisors
Given a positive integer N, determine how many of the integers between 1 and N are co-prime with N. ...
NAC-SAC Game! (Easy)
Akash and Guru are playing an interesting game. They are standing at the two ends of the NAC-SAC bri...
Largest Prime
A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe...
Laali Vs Bessie
One day Raju discovered USACO and from that day he would spend all his time solving problems. Laali ...
Exponential Growth
You will be given two integers X and N, you have to calculate XN modulo 1000000007.
Toph uses cookies. By continuing you agree to our Cookie Policy.