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...

Missing Number

Given the sum of four numbers and three of those numbers, find the missing number. All four numbers ...

Tricky Racer

Talent Bob is a galaxy wide known legend and a racer (in game :P). He always wins races by his trick...

Pie Are Squared

Given the radius of a circle, calculate and print its area. The area of a circle can be computed usi...

Squared

Given the length of a side of a square, calculate and print its area.

Leap Years

In the Gregorian calendar, certain years have 366 days instead of 365. In such years, the month of F...

Running Average

Given N numbers, read each one, calculate the running average and print it. For example, given the t...

Divisors

Read an integer variable and print all of its divisors (including 1 and the number itself).

Fibonacci Numbers

Given an integer N, print the N-th Fibonacci number. A Fibonacci series is a series of numbers in wh...

Count the Odds

Sometimes, contestants tend to look for patterns in problem descriptions. They try to figure out the...

Mixed Fractions

Given an improper fraction (as the numerator N and the denominator D), determine and print it in mix...

Making Friends

Byang is going to join a new school. His new class has N students. Each of the students are identifi...

United State of Koanhali

Koanhali is a strange country. The govt. of Koanhali maintain the marriages of this country. If you ...

Largest Prime

A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe...

Thought Game

Sadia is one of the nicest persons you will ever meet. In fact, she is one of those persons who like...

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...

Fair Distribution

Mr. Forhad has X children. One day, on his way home, he bought Y chocolates for his children. He doe...

Clock Math

Given a time (hours as H and minutes as M), determine the smaller angle between the two hands of a c...

Proper Leap Years

Byang’s friend was asked to author a programming problem where the challenge was to identify if the ...