M-Sequence
A sequence is called M-sequence if after removing zero or more elements from the sequence the GCD of...
Mushrur Injured in Singara Blast
Mashrur Hossain, a programmer, came to Bot-toli from GEC yesterday to attend an event organized by t...
Mystery of Fibonacci
Fibonacci sequence is a recursive sequence that depends on the following definition: Fib(N) = Fib(N-...
NAC-SAC Game! (Easy)
Akash and Guru are playing an interesting game. They are standing at the two ends of the NAC-SAC bri...
NAC-SAC Game! (Hard. Well, Not Really. šŸ˜›)
Remember the game played by Akash and Guru on the NAC-SAC bridge? (For those cannot remember, Akash ...
N Factorial!
I like short descriptions and I think you so too. Let's say you have a number, N. Now try to find th...
Niko Goes Farming
Niko has completed his degree in CSE from North South University. Now he has been tenaciously lookin...
Nodes and Depth
From the above figure, the number of nodes for the first three depths are 3, 9, and 27. You will b...
No Onion, No Cry
-Onions make us cry, don't they? They can make us happy too. -How? -Read the statement carefully! I...
N-th Prime
In this problem, you will have to print the n-th prime number. The first few prime numbers are given...
Nusrat's Treat
We all know how much Nusrat loves chocolate! She gets a lot of chocolate from her friends and family...
Object Detection
Object detection is a computer vision technique that is used to identify and locate objects in an im...
Obligatory IDPC Problem
There are n people busy with arranging the upcoming Inter Department Programming Contest (IDPC) 2016...
Oh Functions
Letā€™s define functions f and g as: f(x) = 2 * ( f(x-1) + g(x-1) - 1 ) * ( f(x-1) + g(x-1) - 3 ) + 12...
Oishi Teacher and Her Naughty Class
Oishi teacher has returned to her class after the tiffin break. She noticed that some students who r...
Omae Wa Mou Shindeiru
Itachi and Sasuke are trying to beat Kabuto, the caster of an awesome magical spell (or you can say ...
Once Upon a Time in Dhaka
Dhaka is one of the mega cities of Bangladesh. At different times, Dhaka was entitled differently by...
Opera & B2G1
ā€œDonā€™t practice until you get it right. Practice until you canā€™t get it wrongā€ Bangladesh is the ho...
Palindromic CSEmpur
Welcome to CSEmpur once again! It has been observed that a good number of inhabitants like palindrom...
Paltu, a Prime Lover
Note that the memory limit is unusual. Paltu is a good programmer and he loves prime numbers. One da...
Pascal's Triangle
Given an integer N, print the sum of the Nth row of the Pascal's triangle. In mathematics, Pascal's ...
Pera in CSEmpur
Who does not like a short and precise problem statement? Atleast everyone in CSEmpur does. You are g...
Perfect Points
Perfect lines are the lines y=mx+c such that m and c are positive integers. Perfect points are the p...
Permutations and Divisors
Let P be a permutation of length n where each value from 1 to n occurs exactly once. A subsequence o...
Perplexity of Permutations
A permutation of N integers from 1 to N is an array where each number has appeared exactly once in t...
Toph uses cookies. By continuing you agree to our Cookie Policy.