Power and Mod

Exponentiation is a mathematical operation, written as b n , inv...

Boltu vs Balti

Boltu and Balti are two friends. Boltu is a great programmer whe...

Circle of Boltu

Boltu and Poltu are two best friends. Boltu loves to play games ...

Counting Is Difficult

East West University Computer Programming Club is organizing a p...

Circles in a Rectangle

Two circles are placed inside a rectangle. They do not intersect...

An Arithmetic Problem

A sequence is an arithmetic sequence if every two successive num...

How Cow!

There is a cow in a village. She eats as much grass as she wants...

Count the Odds

Sometimes, contestants tend to look for patterns in problem desc...

A Girl's Story

Meena (Bengali: মীনা) is a fictional character who stars in the ...

Arunima City

After the big decentralization process, where Dhaka city’s popul...

Compute the Combination

Let P = C(N,0) - C(N,1) + C(N,2) - C(N,3) + … + C(N,N); where C(...

Arithmetic Sequence (Easy)

Arithmetic Sequence is a sequence of numbers where the differenc...

Alice and the Chessboard

It’s Sunday afternoon, and Alice is in her room trying to figure...

Old Magic!

You: Guess an integer number, but don’t tell me. Your friend: Ok...

Around the Square

You are given a square and there are four circles which are over...

GPA Calculator

Shibli is a very good student. He is very regular and attentive ...

Magic Square

A little boy Towhid is good at mathematics. He solves a lot of m...

Window Seats on a Bus

Karim is traveling by bus. He has the window seat. However, he h...

Red and Green

Suppose, there is an array of N integers. Each index of the arra...

Birthday Gift for SJ

Today is your best friend SJ’s birthday. You want to buy a birth...

Be Like Hasib

Hasib, the famous programmer, uses a little game when he teaches...

Event Timing

Bob is making a new application for Android phones. Front-end of...

Prisoners

Let me tell you a story of a dangerous prison. There were N pris...

Sofdor Ali and the Puzzle of Weights

Sofdor Ali is one of the most famous scientists of Bangladesh. H...

Sofdor Ali and Histogram

The Great Sofdor Ali is now interested in competitive programmin...

Arya and OR

Little Arya loves to play with numbers. She likes to play in dif...

Secret Meeting

The world is terrified by Pandas! After a miraculous chemical ex...

Easy Summation

Little Arya is growing up fast and now she can count the numbers...

Byang and The Grid Game

Byang has invented a game he wants to play with his soulmate Bya...

Recursive Function

A common example of recursion goes something like this: long lo...

Playing With Your Mind

Given a non-negative integers N. You have to find an integer P s...

Recursive World!

See following the two recursive functions: C(0) = 0 C(1) = 5 C(...