Relatively Prime
Given a positive integer N, determine how many of the integers between 1 and N are co-prime with N. ...
A Lack of Common Divisors
Given a positive integer N, determine how many of the integers between 1 and N are co-prime with N. ...
Paranoid Trading
You have been newly appointed as the accountant of Michael Corleone - the famous mafia boss. Your ta...
He Who Must Not Be Late
He Who Must Not Be Named, Lord Voldemort, is chasing Harry and Hermione. They have been able to reac...
A Ridiculous Problem
Let's face it. This problem is here just to spite you off. So, I will not beat around the bush. You ...
Dr. Tanzil's Island
Dr Tanzil has a circular shaped lake that he bought long ago. One day while he was visiting there, h...
Life of Phi
The Great Khami is learning Number Theory. He is very excited to know that Euler's Totient Function ...
Demonic Subset
Lets not waste your time with long tiring problem statement and just go straight to the point. You a...
Bulls, Cows, and Digits
Let's play a game. This game is a few centuries old. Nonetheless, it is a good one for an interactiv...
Ne-Zu-Ko Chaaaaaaaaaaaaan!
Tanjiro and his sister Nezuko live in a village that is shaped like a circle with a radius R. There'...
Super Mario Bros
Every kid loves to play Super Mario Bros. Mario moveু forward and collects coins in a stage. Stages ...
Lucky Stone Game
Alice and Bob are playing a stone game. They consider 4 and 7 as lucky numbers and they like to make...
Count the Chaos
Imagine, you have an array of integers of size N. At each index of this array is a unique integer fr...
Exponential Growth
You will be given two integers X and N, you have to calculate XN modulo 1000000007.
Mystery of Fibonacci
Fibonacci sequence is a recursive sequence that depends on the following definition: Fib(N) = Fib(N-...
Boys in the Assembly
N boys are standing in the assembly. There is a single line only. Boys are denoted by their roll num...
Dengue Affected Areas
Dengue, the talk of the town of Dhaka this year. So many people suffered from dengue fever and a num...
Life of Phi II
You will be given two integers n and m where GCD(n,m)=1. You have to tell that how many numbers are ...
Angle of Polygon
Nusrat is a brilliant student. She is good at all subjects but only get confused with geometry. Toda...
Ishtiaque and the Rabbit
Mr Ishtiaque is in trouble. A few months ago, he bought 2 rabbits. He wanted to have two pet rabbits...
Lets Make a Plan
It’s not easy to hang out with your friends during weekends when you have a full-time job and bills ...
Very Easy 269/272/360
Super Shop
A super shop sells only 26 items, labeled them from ‘A’ to ‘Z’. The shop stores the list of products...
Raem's Square
Raem is an eight years old boy. One day his family was visiting Dhaka Shishu Park near Shahbag. Besi...
Lazy Supermen
There are two hills in Sonargaon. The heights of them are H1 and H2 meter. The distance between the ...
Crayons
Five friends A, B, C, D and E has come to a shop to buy crayons for their art project. They need cra...
Toph uses cookies. By continuing you agree to our Cookie Policy.