Maximum Sum Segment

You are given an array a of n positive integers. You Have to perform Q query on it. In each query, y...

Another String Query Problem

This time I’m going to introduce you to a new land, called String Land. In String Land there are N ...

Help to Be Happy

A country named Mueawin has one or more villages and one or more people live in every village. Two p...

The Story of Two Friends

There are two friends F1 and F2 in a city. They both are student of FCB High School. Also, they resi...

Power of the Champion

On Eid-Day the king of Mueawin announced an interesting game for the people of his country. The rule...

Thanos VS Power Stone

Who doesn’t know about thanos the genius mad titan, who waste his life acquiring the infinity stones...

Lets Play Pipeline

In this problem you will have to solve a puzzle game named “Pipeline”. 90’s kids knows this game ver...

Escape the Planet Earth

As you know earth is affected by corona virus. Situation becomes worse day by day .Almost 80% people...

Paltu, a Prime Lover

Note that the memory limit is unusual. Paltu is a good programmer and he loves prime numbers. One da...

Sum of GCD and LCM

The greatest common divisor (GCD) of two integers, is the largest integer that divides both of the i...

Make It Big!

You are given a number N (10 ≤ N ≤ 2×109). You have to perform exactly two swap operation. You can c...

Tic Toc Toe

We all know what Tic-Toc-Toe works. But in the anime world, people aren’t really interested in norma...

Cutting Bamboos

There are n bamboos in a row. Khan the bamboo cutter is going to cut them all one by one. He can do ...

Help Lazy Tareq

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

Rename the Books

Everything is short in the Short Land. People use short words when talking to each other or writing ...

Incorrect Is Incorrect

This is a straightforward problem. You will be given an incorrect mathematical sum expression like A...

Weather Report

Santu is a newcomer in Rangpur. He could not adjust to the strange weather in Rangpur. He goes out f...

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

Not Bad Array

Mr. Hikiko will react with a “Not Bad”, if you can solve this problem. An array is a Not Bad array i...

Making Equal

You are given a string S, that contains only lowercase English letters. You can change a letter to a...