Painful Giveaway!
Shahwat is a very good problem solver. He is very famous in his city. In any problem, the mayor asks...
Chief Thief
A group of thieves steal only money. Every morning they deposit the money to their leader. The leade...
Sudoku
The Prothom Alo newspaper sometimes publishes Sudoku for interested readers to solve. Later the solu...
Scholarship
Your school is going to start a new scholarship program. To apply for this scholarship you have to w...
Spot It!
Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t...
Brush Drawing
Arav is a curious young boy. He is learning to draw circles. He only got one color but a lot of brus...
Laser Light
A 2D grid consists of a lot of special lights bulbs, which turns on upon the incidence of a laser li...
Cashback
Cashback on payment methods (e.g. credit card) is a common term nowadays. That is, if you pay using ...
Copycat
Read an integer variable and print it.
Add Them Up
Read two integer variables, calculate their sum, and print it.
Squared
Given the length of a side of a square, calculate and print its area.
Missing Number
Given the sum of four numbers and three of those numbers, find the missing number. All four numbers ...
Running Average
Given $N$ numbers, read each one, calculate the running average and print it. For example, given the...
Running Average Again
Given N numbers, read each one, calculate the running average and print it. For example, given the t...
Math and Watermelons
Your friend has M watermelons. He doesn't want to share them with anyone, but let's imagine he would...
Maximum
Given N numbers, find the one that is of the highest value and print it.
Formatted Numbers
Read an integer variable and print it in which the digits are separated into groups of three by comm...
Is Palindrome
Given a word, print Yes if it is a palindrome, otherwise No. A palindrome is a word which reads the ...
Clock Math
Given a time (hours as H and minutes as M), determine the smaller angle between the two hands of a c...
Divisors
Read an integer variable and print all of its divisors (including 1 and the number itself).
Making Friends
Byang is going to join a new school. His new class has N students. Each of the students are identifi...
Is Anagram
An anagram is a word formed by rearranging the letters of another word. The words "listen" and "sile...
Mixed Fractions
Given an improper fraction (as the numerator $N$ and the denominator $D$), determine and print it in...
Is Prime
Given an integer $N$, determine if it is a prime a number. A number is called prime if it is only di...
Fibonacci Numbers
Given an integer N, print the N-th Fibonacci number. A Fibonacci series is a series of numbers in wh...
Toph uses cookies. By continuing you agree to our Cookie Policy.