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...
Police Stations
Recently the government of country S is going to construct some police stations(possibly zero) in so...
Perseus and The New Challenge
The life of princess Andromeda, the daughter of King Cepheus and Queen Cassiopeia of Ados, is in dan...
Productive Employees
Congratulations on becoming the new boss of "Horizontal Company, branch: Sylhet"! But now you have a...
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...
Powerful Array
You are given an array A of N integers . Now you have to process Q queries in this array. Each query...
Donate Our Department
We are students of CSE, IU. It is very well known that our departmental instruments are not so good....
Big Tang Theory
Shell Don (Shelly in short) is a theoretical physicist who is claimed to be highly intelligent with ...
Array Simulation
You are given an array of N elements. Initially all the indices have a value of 0. You have to do fo...
Kingdom of Equality
There is a kingdom called DomKi. There are N cities and N – 1 bidirectional roads in DomKi. The citi...
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...
Special Pair
Mr. X is an “array pagla” person. He loves doing different types of things with arrays. Today Mr. X ...
Dynamic Tree
You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...
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...
Expandable ListView
Minas is working on his new language. He want to add a feature call expandable listview. Here he exp...
Remember the Name...
There's a famous song written by Mike Shinoda, which has these lines: This is 10% luck, 20% skill, ...
Jontrona of Liakot
Liakot, the king of Cox's Bazar, is currently in a dire situation. His own younger sister Ayesha is ...
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...
So Long
As all people know ICPC can be very dull sometimes for people other than contestants. Jodu, Modu, an...
Bored??
"Avoid touching your face, particularly your eyes, nose or mouth to prevent the virus from entering ...
Subtree MEX
You will be given a balanced binary tree of N nodes. Each of the nodes of the tree will contain a no...
Earthquake!
Most houses are not as safe as they could be. Earthquake engineering is an interdisciplinary branch ...
Composite Facts
Let's define two functions F and S: F(n) = 1 + n! S(n,m) = Sum of first m non-prime integers which ...
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...
Toph uses cookies. By continuing you agree to our Cookie Policy.