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 ...
Exists or Not Exists
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 ...
Making Football Teams
There are N football teams and each team has a positive number of players. You are given Q queries. ...
Color The Graph
You are given an acyclic, bidirectional graph with N nodes and M edges. The nodes are numbered from ...
Video Game Pro
Shefin is playing a video game. In this game, there will be $N$ buildings in a row. $i^{th}$ buildin...
Easy Peasy, Lemon Squeezy
Let's consider an array A which is initially empty. We'll perform two types of operation on that arr...
Going Round in Circles
You are given an array of non-negative integers of length n. You have to perform two types of operat...
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...
Race in DomKi
There is a kingdom called DomKi. DomKi has N city and N-1 two-way road. Each city is numbered with 1...
Mr. Hikiko and a Strange Game (Hard)
Mr. Hikiko recently downloaded a strange game on his phone from a store. This game is quite interest...
Buckets of Water
In Abby's area the water is available in the tap only from 6AM to 8AM. So, Abby thought she would st...
ICPC World Final
ICPC (International Collegiate Programming Contest) World final is one of the most prestigious conte...
Escape Plan
Hey, you are stuck on prison and you have to get out soon. This prison has one way road and you can ...
XOR Tree
You are given a tree with N vertices. A tree is a connected undirected graph without cycles. The tre...
Nearest Light
We, iuian develop a virtual vertical line with infinite length are numbered starting from zero from ...
GCD and Sum
Congratulations! You’ve been hired in “Buggy Software Ltd.” And you’ve been already given your first...
Rational Monkey
There lived a wise monkey in the forest of Amazon. One day he started searching the jungle for banan...
Protik and Hill Climbing
Who doesn't want to save a mother? Like everyone,  Protik was finding a way to earn some money (he h...
Yet Another XOR Tree Problem
You are given a tree with N nodes. A non-negative weight is assigned to each edge of the tree. Let’s...
Water in a Tree
There is a tree consist of N nodes and N−1 edges. The ith node contains Si​ liters of water with a t...
Counting Friends
Johnny uses a social network called Supernova. Unlike the other social networks, Supernova does not ...
Subtree MEX
You will be given a balanced binary tree of N nodes. Each of the nodes of the tree will contain a no...
MEXimum
Let’s get straight to the point. You are given a tree. In the tree, each node u has a number au​ ass...
StackLang
StackLang is a stack-based programming language. Here, each program contains a series of commands th...
Toph uses cookies. By continuing you agree to our Cookie Policy.