Leap Years

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

Squared

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

Pie Are Squared

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

Running Average Again

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

Missing Number

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

Math and Watermelons

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

Running Average

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

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

Making Friends

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

Mixed Fractions

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

Thought Game

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

Fibonacci Numbers

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

Fair Distribution

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

Proper Leap Years

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

Divisors

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

Boltu vs Balti

Boltu and Balti are two friends. Boltu is a great programmer whereas Balti is a newbie programmer. B...

Clock Math

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

Counting Is Difficult

East West University Computer Programming Club is organizing a programming contest today. One of you...

An Arithmetic Problem

A sequence is an arithmetic sequence if every two successive number has same difference. Suppose thi...

Power and Mod

Exponentiation is a mathematical operation, written as b n , involving two numbers, the base b and t...