Criterion rounds will be postponed by a few weeks. Learn more...

Ice-Cream of Montu Mia Again!

Montu Mia is a student of “Omok School”. He likes to eat an ice-cream every day. But he also likes t...

Color The Graph

You are given an acyclic, bidirectional graph with NNN nodes and M edges. The nodes are numbered fro...

Count the Chaos

Imagine, you have an array of integers of size NNN. At each index of this array is a unique integer ...

Neat Brackets

Given a sequence of opening and closing parentheses ("(" and ")") you will have ...

Crayons

Five friends A, B, C, D and E has come to a shop to buy crayons for their art project. They need cra...

Set Union

Given two sets of integers, print the set containing the union of the two input sets. For example, g...

Tree Queries

You are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...

Easy Prime!

There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...

Byang and War Tactics

Byang is learning about War Tactics from Raat, a famous martial arts master, who has successfully tr...

Taju Kage Bunshin No Jutsu

Naruto Uzumaki is one of the strongest ninja of RUET (Rasengan University of Ebisu and Tobi), posses...

Another Query on String

You are given a string S (of length n) consisting of alphabets only. You need to perform m queries o...

Sofdor Ali and Bracket Sequence

Sofdor Ali has invented a new game. He asked his assistant Jong Bahadur ( who happens to be a monkey...

Dengue Affected Areas

Dengue, the talk of the town of Dhaka this year. So many people suffered from dengue fever and a num...

Ajob Commute II

Once again we return to Ajobshohor, the capital city and the heart of Ajobdesh. Ajobshohor’s road sy...

Data Structure

The operations that are performed in a data structure can be categorized into two types: query and u...

City of Burgerland

Have you ever heard of The Burgerland City? The city is full of burger shops. You will surely find s...

Rivalry Friends

Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...

Distinct Dishting

You are given an array of NNN integers. Then there will be QQQ commands of the following type: Cha...

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

MSIS!

Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...

Smallest Subarray

You are given an array A of N integers A1, A2, A3, ..., AN . If we select two indices (1 ≤ i ≤ j ≤ N...

Police Stations

Recently the government of country S is going to construct some police stations(possibly zero) in so...

Straightforward

No gossip. In this problem I will just say what to do. Initially, you will be given a bracket sequen...

Array Simulation

You are given an array of N elements. Initially all the indices have a value of 0. You have to do fo...

Hide and Seek

You know how to play hide-and-seek, right? In a group of kids, one of them is selected to be the see...