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

Challenge From Mr. Professor

One Day Mr. Professor was taking His schedule class on Discrete Mathematics. In this lecture, He was...

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.

N-th Prime

In this problem, you will have to print the n-th prime number. The first few prime numbers are given...

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

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

Trust Me , You Can Solve It ;-)

Nafis Shahriar loves to do codeforces programming contests. He is the first candidate master in code...

Divisors

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

Mixed Fractions

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

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

Math and Watermelons

Your friend has M watermelons. He doesn’t want to share them with anyone, but let’s imagine he would...

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