Running Average

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

N-th Prime

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

Squared

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

Making Friends

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

Pie Are Squared

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

Missing Number

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

Leap Years

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

Mixed Fractions

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

Exponential Growth

You will be given two integers X and N, you have to calculate XN modulo 1000000007.

Running Average Again

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

Proper Leap Years

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

Laali Vs Bessie

One day Raju discovered USACO and from that day he would spend all his time solving problems. Laali ...

Clock Math

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

Pascal's Triangle

Given an integer N, print the sum of the Nth row of the Pascal’s triangle. In mathematics, Pascal’s ...

Divisors

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

Geometry Forever

Fear no more, this is a problem of geometry! When Moyna was little, he had a math teacher named Shuk...

Thought Game

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

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

Fair Distribution

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

Count the Odds

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