Fair Distribution
Mr. Forhad has X children. One day, on his way home, he bought Y chocolates for his children. He doe...
Co-Prime Enemy Pair
Two integers A and B are known as co-prime or relatively prime if their greatest common divisor GCD ...
Thought Game
Sadia is one of the nicest persons you will ever meet. In fact, she is one of those persons who like...
Oh Functions
Let’s define functions f and g as: f(x) = 2 * ( f(x-1) + g(x-1) - 1 ) * ( f(x-1) + g(x-1) - 3 ) + 12...
Calculate the Sum If You Can
This problem deals with the following expression: 1−2+1−2+1−2+1−2+1−2+1−2+1−2+... Given n, you have ...
Correct the Sieve
Sieve of Eratosthenes is a fast algorithm for finding prime numbers in larger ranges. According to W...
Power of Army
Recently Chikanu declared war against Shukanu. To win the battle against Shukanu he wants to form an...
Christmas Tree
Professor Rio has an amazing Christmas tree. Unlike other trees, this Christmas tree has some specia...
Dengue
Once upon a time there was a king. He had a huge kingdom and the king was very kind. All of his subj...
Easy Prime!
There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...
Pie Are Squared
Given the radius of a circle, calculate and print its area. The area of a circle can be computed usi...
Is It A Square?
Shikamaru is the most brilliant student of his class. He is very good at Mathematics. Mr. Asuma is t...
Chief Thief
A group of thieves steal only money. Every morning they deposit the money to their leader. The leade...
Left Prime
Prime numbers are the ones which can only be divided by 1 and the number itself. 2, 3, 5, 7, 11, 13 ...
Scholarship
Your school is going to start a new scholarship program. To apply for this scholarship you have to w...
Chowdhury Saheb & the Numbers
You like short description of problems? Me too! Let's go to an easy problem. You are given an array ...
Spot It!
Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t...
Love Letters!
Lately Fahim is getting a lot of love letters. A LOT of love letters. Since he is confused about whi...
Squared
Given the length of a side of a square, calculate and print its area.
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...
Missing Number
Given the sum of four numbers and three of those numbers, find the missing number. All four numbers ...
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...
Running Average
Given $N$ numbers, read each one, calculate the running average and print it. For example, given the...
Laali Vs Bessie
One day Raju discovered USACO and from that day he would spend all his time solving problems. Laali ...
Running Average Again
Given N numbers, read each one, calculate the running average and print it. For example, given the t...
Toph uses cookies. By continuing you agree to our Cookie Policy.