An Obvious Interactive Problem

I pick a number. You guess it. You can guess at most 25 times. For every guess you make, I will tell...

Be Like Hasib

Hasib, the famous programmer, uses a little game when he teaches Binary Search to his students. He r...

Poltu and Minimum Spanning Tree

Boltu gave a simple task to his best friend Poltu. You are a good programmer. So, Poltu hired you to...

Exist or not exist

You will be given some numbers. Then there will contain some queries. In every query there will be g...

Answer the Queries

Given an array of N elements, indexed from 0 to N-1. Now you are given some queries in the form [L, ...

Making Football Teams!!!

There are N football teams and each team has positive number of players. You are given Q queries. Q...

Buildings

There are n buildings in a row. The height of the i’th building is hi. You have ৳k. It is the amount...

Hizitizi's Array Cutting

Hizitizi is a new character in our story. In every episode, he gets a task to do from his imaginary ...

Help Lazy Tareq

There is a boy named Tareq Abrar who is very lazy. He likes sleeping. He also likes eating. His moth...

A Super Easy Problem - "Array Query"

Let’s get into the problem directly without much description this time :D . You are given an array A...

Spot It!

Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t...

Sofdor Ali and Attack Optimization

Tuki and Jha is in the middle of an interplanetary war and their base is under drone attack! They ar...

The Multiplayer Action Game

Have you played the game Agar.io? According to wikipedia, Agar.io is a massively multiplayer action ...

Lucky Shirt

Marjokes is a very famous comedy personality in Byteland. He is a poet, a writer, a singer and an ac...

Balanced Relief

Thanos just finished his relief work. We all know that Thanos loves balanced things. So he finds som...

Mind Flayer Has Attacked Again!

Mind flayer, the shadow monster has attacked the town of Hawkins again. This time, the mind flayer h...

I Scream, You Scream!

Meem loves ice cream cones. So much so that she created an ice cream stand to share the joy of ice c...

Complex Operations

You are given an array A of length N. You have to perform two different types of operations. In the ...

Poltu and Interesting Number

Poltu Loves interesting number. So he wants to find this type of number. The definition of an intere...

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