String in a Grid 2
Prof. Bari loves to play with string. He is also very skilled in drawing. One day he was drawing a g...
Equation Equals Hazards
You are given the equation, GCD(A,M)=1. You have to determine whether there exists at least one inte...
Weird Subtraction
You are given two integers n and m. You have to subtract m from n until n becomes less than or equal...
Magic Number
Jack loves to play with numbers. One day, while he was playing with numbers he found something inter...
Power and Mod
Exponentiation is a mathematical operation, written as b n , involving two numbers, the base b and t...
Sofdor Ali and Histogram
The Great Sofdor Ali is now interested in competitive programming. Seeing this, his friend and also ...
Blanket
You have a suitcase with length X, width Y and height Z. You also have a very comfortable blanket. I...
How Many Ways?
Regular problem solvers starts their journey by solving ad hoc and number theory. After getting the ...
Love Letters!
Lately Fahim is getting a lot of love letters. A LOT of love letters. Since he is confused about whi...
Find the primes?
For a positive integer n, let’s define a function f: f(n) = sum of positive integers less than n whi...
Area
In this problem, you will be given a square which has a length of n. Co-ordinates of the square are ...
SUM Equals LCM
Given N, print a sequence of N positive integers A1​,A2​,…,AN​ that satisfy the following conditions...
Calculate the Sum If You Can
This problem deals with the following expression: 1−2+1−2+1−2+1−2+1−2+1−2+1−2+... Given n, you have ...
Kinderbijslag
Kinderbijslag (children's allowance) is a social security payment which is distributed to the parent...
Math Very Easy 322/343/599
Magic Square
A little boy Towhid is good at mathematics. He solves a lot of mathematical equation regularly. He i...
Window Seats on a Bus
Karim is traveling by bus. He has the window seat. However, he has to share the window with the pass...
Nusrat's Treat
We all know how much Nusrat loves chocolate! She gets a lot of chocolate from her friends and family...
Relatively Prime
Given a positive integer N, determine how many of the integers between 1 and N are co-prime with N. ...
The Titan
The Titan, a giant ship started its journey on the dark sea. It was going to the North America. On t...
Absolute U
Do you know about absolute value function? In mathematics, the absolute value of a real number u, de...
For Loop FTW
You are given an integer N which can be represnted as the product of two positive integers. $ N = a_...
Niko Goes Farming
Niko has completed his degree in CSE from North South University. Now he has been tenaciously lookin...
Mr. Ant and His Problem
Mr. Ant has 3 boxes and the infinite number of marbles. Now he wants to know the number of ways he c...
Largest Prime
A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe...
An Arithmetic Problem
A sequence is an arithmetic sequence if every two successive number has same difference. Suppose thi...
Toph uses cookies. By continuing you agree to our Cookie Policy.