Chief Thief A group of thieves steal only money. Every morning they deposit the money to their leader. The leade... |
Divisible LCM You have a sequence a1, a2, a3, …, an of n integers and q queries. In each query, you are given ... |
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 ... |
Level Up You are playing a game that has 16 levels. You start with level 1 and after gaining a certain amount... |
Boltu vs Balti Boltu and Balti are two friends. Boltu is a great programmer whereas Balti is a newbie programmer. B... |
Red and Green Suppose, there is an array of N integers. Each index of the array is either red or green. The first ... |
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... |
Magic Square A little boy Towhid is good at mathematics. He solves a lot of mathematical equation regularly. He i... |
Kinderbijslag Kinderbijslag (children's allowance) is a social security payment which is distributed to the parent... |
Challenging Lover Greetings to all of you. You must have heard about our star programmer Rafat bhai. One day he went o... |
Shine on You Crazy Diamond This problem is authored by one of our late friends, Sifat, who unexpectedly left us last year. He w... |
Sofdor Ali and Histogram The Great Sofdor Ali is now interested in competitive programming. Seeing this, his friend and also ... |
Sofdor Ali's Restaurant One of Sofdor Ali’s greatest accomplishment was his Biriyani restaurant! Unlike the traditional rest... |
Arya and OR Little Arya loves to play with numbers. She likes to play in different ways with them. One day she s... |
Prime Range Prime Numbers are such numbers which are only divided by 1 and the number itself. 2, 3, 5, 7, 11, 13... |
Co-Prime Enemy Pair Two integers A and B are known as co-prime or relatively prime if their greatest common divisor GCD ... |
Misti Chor Bhootu likes to eat misti. As he is a mischievous kid, he has decided to steal misti from the nearby... |
Ishtiaque and the Rabbit Mr Ishtiaque is in trouble. A few months ago, he bought 2 rabbits. He wanted to have two pet rabbits... |
NAC-SAC Game! (Easy) Akash and Guru are playing an interesting game. They are standing at the two ends of the NAC-SAC bri... |
Secret Meeting The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev... |
Elementary Arithmetic When Shakib was little, his mother used to help him with his studies. Usually, around 7 PM in the ev... |
The Lucky Dice Ray and Evangeline are playing a game named "The Lucky Dice". In this game, each player tosses up an... |
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 ... |
Compute the Combination Let P = C(N,0) - C(N,1) + C(N,2) - C(N,3) + ... + C(N,N); where C(n,r) is "n choose r". You are give... |
Geometry Forever Fear no more, this is a problem of geometry! When Moyna was little, he had a math teacher named Shuk... |