Problems for Beginners

Squared
Given the length of a side of a square, calculate and print its area.
Running Average
Given $N$ numbers, read each one, calculate the running average and print it. For example, given the...
Running Average Again
Given N numbers, read each one, calculate the running average and print it. For example, given the t...
Tidy Bits
Read an integer variable, and determine the smallest positive integer that has the same number of 1s...
Set Union
Given two sets of integers, print the set containing the union of the two input sets. For example, g...
Proper Leap Years
Byang's friend was asked to author a programming problem where the challenge was to identify if the ...
Test Cases
Byang's friend is building a sport programming platform and needs your help with one of the modules....
Thought Game
Sadia is one of the nicest persons you will ever meet. In fact, she is one of those persons who like...
Tricky Ratio
Given the radius (r) of a circle you have to calculate the ratio between the circumference (C) of th...
Special Triplets
You will be given an integer X. You have to print any three integers greater than 0 and lesser than ...
Print the Words
Given a blob of text you will have to determine the following statistics about it: The longest wor...
Take It Easy
This is a very simple problem. You will be given a single integer n. You have to print four numbers ...
The Third Problem
This is the third problem of today’s contest. In this problem you will be given a list of numbers. Y...
Prime Plus Prime
You will be given an integer N. N is a prime number. You have to determine if adding any other prime...
Strange Patterns
Given R, C and D, you will produce a pattern consisting of asterisks (*) and dots (.). The pattern i...
Strange Patterns Reversed
You will be given an R×C grid of asterisks (*) and dots (.). The grid is the top-left view of an inf...
Toph uses cookies. By continuing you agree to our Cookie Policy.