Phi Numbers in Range!
In number theory, Euler’s phi function, denoted as ϕ(n), is an arithmetic function which counts the ...
Pie Are Squared
Given the radius of a circle, calculate and print its area. The area of a circle can be computed usi...
Plantik
It is Argentina vs France in the football world cup final of 2022 in a parallel universe. You are a ...
Playing With Aladdin
Aladdin is a fictional character and the titular protagonist of Walt Disney Pictures' 31st animated ...
Playing With Your Mind
Given a non-negative integers N. You have to find an integer P such that, the following conditions s...
Pleasant Permutations
A sequence of n integers is called a permutation if it contains all integers from 1 to n exactly onc...
Poltu and Digit Product
You are given two integer L and R. You have to find the summation of digit product of all number fro...
Poltu and Odd Number
Today is Poltu’ first C programming class. And, he needs your help with a programming task. Given tw...
Poltu and Trailing Zero
Poltu gives a problem to his friend Boltu. The description is given below: You are given an integer ...
Power and Mod
Exponentiation is a mathematical operation, written as b n , involving two numbers, the base b and t...
Powerful Number
Efa loves numbers. She thinks a number is powerful if it can be expressed in the form xy where x and...
Power of Army
Recently Chikanu declared war against Shukanu. To win the battle against Shukanu he wants to form an...
Predict The Frequency
Luis was sleeping. He suddenly woke up with three positive integers N, M and X. He told his younger ...
Prime Factors
Given an integer N, can you determine its prime factors?
Prime Range
Prime Numbers are such numbers which are only divided by 1 and the number itself. 2, 3, 5, 7, 11, 13...
Prime Team
There are n players standing in a line. Each of the players is assigned a unique jersey number. You ...
Prisoners
Let me tell you a story of a dangerous prison. There were N prisoners in that prison. It is guarante...
Proper Leap Years
Byang's friend was asked to author a programming problem where the challenge was to identify if the ...
PUBG Lover Programmer: The Beginning
Sroud loves to play PUBG and does programming contest. He always thinks about converting gameplay to...
Pudding and Coins
Pudding is playing a game that has n levels. There are a total of n(n+1)/2 coins spread out among th...
Quarantine!!!
China is one of the strongest countries in the world in the sense of economy and military technology...
Raem's Square
Raem is an eight years old boy. One day his family was visiting Dhaka Shishu Park near Shahbag. Besi...
Random Graphs
This problem is very easy. There's a graph of $N$ nodes. Each edge $u-v$ ($u >= v ; u = v$ is possib...
Recursive Function
A common example of recursion goes something like this: long long recur(int x){ if (x==0){ return X0...
Recursive World!
See following the two recursive functions: C(0) = 0 C(1) = 5 C(K) = C(K-1) + 4 F(0) = 1 F(1) = 2 F(N...
Toph uses cookies. By continuing you agree to our Cookie Policy.