# Problems for Beginners

#### Copycat

Read an integer variable and print it.

Read two integer variables, calculate their sum, and print it.

#### Squared

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

#### Missing Number

Given the sum of four numbers and three of those numbers, find t...

#### Maximum

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

#### Mixed Fractions

Given an improper fraction (as the numerator N and the denominat...

#### Running Average

Given N numbers, read each one, calculate the running average an...

#### Running Average Again

Given N numbers, read each one, calculate the running average an...

#### Math and Watermelons

Your friend has M watermelons. He doesn’t want to share them wit...

#### Is Palindrome

Given a word, print “Yes” if it is a palindrome, otherwise “No”....

#### Divisors

Read an integer variable and print all of its divisors (includin...

#### Making Friends

Byang is going to join a new school. His new class has N student...

#### Is Anagram

An anagram is a word formed by rearranging the letters of anothe...

#### Is Prime

Given an integer N, determine if it is a prime a number. A numb...

#### Fibonacci Numbers

Given an integer N, print the Nth Fibonacci number. A Fibonacci...

#### Pascal's Triangle

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

Byang is learning how to add numbers. However, he gets confused ...

#### Tidy Bits

Read an integer variable, and determine the smallest positive in...

#### Decent Arrays

Given N numbers determine if they are in ascending order.

Byang is creating an account on Toph. He needs your help to crea...

#### Set Union

Given two sets of integers, print the set containing the union o...

#### Caesar Cipher

Byang wants to write a secret message to his friend. He has rece...

#### Little Subarray Sum

Given an array of N numbers and two indices, determine the sum o...

#### ASCII Progress Bar

In this problem, you need to write a code that prints an ASCII p...

#### Proper Leap Years

Byang’s friend was asked to author a programming problem where t...

#### Neat Brackets

Given a sequence of opening (() and closing ()) parentheses you ...

#### Test Cases

Byang’s friend is building a sport programming platform and need...

#### Little Matrix Multiplication

Given two 2×2 matrices, calculate the product of the two matrice...

#### BPL Mubarak!

Bangladesh Premier League is in Sylhet for the first time. Today...

#### Fair Distribution

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

#### ICPC Is Coming in Hot!

Tanmoy is an ACM ICPC contestant. During practice he came across...

#### Thought Game

Sadia is one of the nicest persons you will ever meet. In fact, ...

Search