Matching Brackets

You will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ...

Exist or not exist

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

United State of Koanhali

Koanhali is a strange country. The govt. of Koanhali maintain the marriages of this country. If you ...

Set Union

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

Village Fair 2

There are N houses in a village far away from here. They are numbered from 1 to N. For this problem ...

MSIS!

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

Color The Graph

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

Not As Hard As It Seems

Sakib and Shamim are good friends. As Sakib is a little naughty, every night before exam he disturbs...

Data Structure

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

Count the Chaos

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

Mad Engineer Aksir

Can you imagine? Mad Engineer Aksir finally got the job. His job is to set up toggle switch for a se...

Rivalry Friends

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

Making Football Teams!!!

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

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