Permutations and Divisors
Let P be a permutation of length n where each value from 1 to n occurs exactly once. A subsequence o...
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 ...
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 ...
Weird Subtraction
You are given two integers n and m. You have to subtract m from n until n becomes less than or equal...
Mushrur Injured in Singara Blast
Mashrur Hossain, a programmer, came to Bot-toli from GEC yesterday to attend an event organized by t...
Justify the Invention !
You probably heard of Professor Meiokoyi, a talented scientist. Recently she invented a new solution...
Most Difficult Problem Ever
You are given a function like below: long long F(int A, int B, int C, long long x) { long long res =...
Scholarship
Your school is going to start a new scholarship program. To apply for this scholarship you have to w...
Combination Lock
Imagine a Combination Lock - If you set the numbers to a preset combination (passcode), the lock wi...
Dinner With Aminvai
Aminvai is a famous programmer of the world. He has a lot of fans & followers. Unfortunately, he has...
Arya and OR
Little Arya loves to play with numbers. She likes to play in different ways with them. One day she s...
Divisible by 3
You will be given a string containing digits. You have to say the number of sub strings whose sum is...
NAC-SAC Game! (Easy)
Akash and Guru are playing an interesting game. They are standing at the two ends of the NAC-SAC bri...
Power and Mod
Exponentiation is a mathematical operation, written as b n , involving two numbers, the base b and t...
United State of Koanhali
Koanhali is a strange country. The govt. of Koanhali maintain the marriages of this country. If you ...
PUBG Lover Programmer: The Beginning
Sroud loves to play PUBG and does programming contest. He always thinks about converting gameplay to...
Wheel Graph
Today we will learn about a special type of graph called Wheel Graph. In the mathematical discipline...
Opera & B2G1
“Don’t practice until you get it right. Practice until you can’t get it wrong” Bangladesh is the ho...
How Many Kids Are in the Circle?
A group of kids are standing in a circle and playing catch the ball. For fair play, they always main...
Incorrect Is Incorrect
This is a straightforward problem. You will be given an incorrect mathematical sum expression like $...
Squares Inside Square
Hello , Programmers. There is one thing that I don't like about competitive problem solving, which i...
Misti Chor
Bhootu likes to eat misti. As he is a mischievous kid, he has decided to steal misti from the nearby...
Chief Thief
A group of thieves steal only money. Every morning they deposit the money to their leader. The leade...
Delete the Array
There is an array of size n. You will be given an integer x. In each move you have to subtract x or ...
SUM Equals LCM
Given N, print a sequence of N positive integers A1​,A2​,…,AN​ that satisfy the following conditions...
Toph uses cookies. By continuing you agree to our Cookie Policy.