Power and Mod Exponentiation is a mathematical operation, written as b n , involving two numbers, the base b and t... |
Obligatory IDPC Problem There are n people busy with arranging the upcoming Inter Department Programming Contest (IDPC) 2016... |
Playing With Your Mind Given a non-negative integers N. You have to find an integer P such that, the following conditions s... |
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... |
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... |
Mr. Ant and His Problem Mr. Ant has 3 boxes and the infinite number of marbles. Now he wants to know the number of ways he c... |
Arunima City After the big decentralization process, where Dhaka city's population were relocated, a new city cal... |
Bad Neighbors In the strange neighborhood of Nocu, a lot of people lives pretty happily, or so they think. Like mo... |
Arya and OR Little Arya loves to play with numbers. She likes to play in different ways with them. One day she s... |
Meera and Solo Chocolates Meera bought candies from the store. She is now going to distribute those among her N friends. She m... |
Kinderbijslag Kinderbijslag (children's allowance) is a social security payment which is distributed to the parent... |
How Many Paths? You are at the top left corner [position (1,1)] of a R×C grid. Your destination is bottom right corn... |
Easy Summation Little Arya is growing up fast and now she can count the numbers. The problem with her counting is t... |
Bad Neighbors 2 As some of you already know, Nocu City has a history of having bad neighbors. These bad ones, take a... |
Arithmetic Sequence (Easy) Arithmetic Sequence is a sequence of numbers where the difference between two consecutive numbers ar... |
Subset of Sequences You will be given a set of sequences. Each sequence is a list of numbers. Two sequences are K-simila... |
Arithmetic Sequence (Hard) Arithmetic Sequence is a sequence of numbers where the difference between two consecutive numbers ar... |
Secret Meeting The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev... |
Largest Prime A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe... |
Harry Potter and the Vault of Gringotts "There was a break-in of Gringotts Wizarding Bank on 1 May, 1998, during the height of the Second Wi... |
Count the Odds Sometimes, contestants tend to look for patterns in problem descriptions. They try to figure out the... |
The Game Is Back On Moriarty is bored again. When he gets bored, the only thing he wants to do is play with Sherlock. So... |
Gutibaji on Chessboard Let there be a chessboard of size N×M, and only one bishop in a cell (x,y). How many cells can the b... |
XOR Master Imam has been participating in online programming contests for years. His goal is to become a "Maste... |
Game, Game Everywhere Binary and Ternary are playing a game. In this game, they initially choose an array with N elements.... |