Problems for Beginners

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.

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

Maximum

Given N numbers, find the one that is of the highest value and print it.

Mixed Fractions

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

Running Average

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

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

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 \texttt{Yes} if it is a palindrome, otherwise \texttt{No}. A palindrome is a wor...

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

BPL Mubarak!

Bangladesh Premier League is in Sylhet for the first time. Today’s match is Sylhet Sixers vs the Dha...

Fair Distribution

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

ICPC Is Coming in Hot!

Tanmoy is an ACM ICPC contestant. During practice he came across a problem named ‘OWLLEN’. He has ha...

Thought Game

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