How Cow!

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

Boltu vs Balti

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

XOR Master

Imam has been participating in online programming contests for y...

Power and Mod

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

Another Update-Query Problem

You will be given an array A of length N and you will have to pe...

Around the Square

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

Count the Odds

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

Be Like Hasib

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

An Arithmetic Problem

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

Event Timing

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

Bloodlust

Mr. X is a dangerous criminal. He likes to draw some geometric r...

Convex Hull Generator

You have to generate a convex polygon which has N points each ...

Meena And Her Dream

We are now in meena’s dream. But she can’t see us, we are invisi...

Trivial Summation

The problem statement is so small. Give you four integers r, a, ...

Magic Square

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

Circles in a Rectangle

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

Counting Is Difficult

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

Counting is Difficult 2

East West University Computer Programming Club (EWUCoPC) is arra...

Geometry Forever

Fear no more, this is a problem of geometry! When Moyna was lit...

A Girl's Story

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

Old Magic!

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

Koch Snowflakes

The Koch snowflake can be constructed by starting with an equila...

Arithmetic Sequence (Easy)

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

Easy Peasy Subset Sum

Little Oishee loves to watch TV. But her mother, who is a math t...

Find the CEOs

You will find millions of CEOs in this country. Some have a one ...

Birthday Gift for SJ

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

Prisoners

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

Byang and The Grid Game

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

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...

Recursive Function

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

Compute the Combination

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