Queries, Queries Everywhere
You are given an array a of length n. You are also given q queries on the array and you have to proc...
Subsequence Fight
You are given an array a1​,a2​,…,an​ consisting of n distinct integers and an integer k. You can cho...
Maximum Distance
You know it’s hard seeing your favorite person being interested in another one instead of you. At th...
Subtree MEX
You will be given a balanced binary tree of N nodes. Each of the nodes of the tree will contain a no...
Nothing Is Absolute, Everything Is Relative!
You are given an integer array, A[] of size N, and an integer M. Then you have to perform a total of...
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...
Birthday Present
Today is problem setter's best friend Jenny’s birthday. Long ago, Jenny, being a very clever girl, a...
GCD and Sum
Congratulations! You’ve been hired in “Buggy Software Ltd.” And you’ve been already given your first...
Change Queries
Today is a very special day for Rubel. Recently he got a job in a software company. Now today is the...
Path Intersection Extended
Do you remember the problem from ICPC Dhaka Regional 2018 named $Path$ $Intersection$ by Md. Imran B...
Escape Plan
Hey, you are stuck on prison and you have to get out soon. This prison has one way road and you can ...
Exists or Not Exists
You will be given some numbers. Then there will contain some queries. In every query there will be g...
Paltu, a Prime Lover
Note that the memory limit is unusual. Paltu is a good programmer and he loves prime numbers. One da...
Bored??
"Avoid touching your face, particularly your eyes, nose or mouth to prevent the virus from entering ...
Stick Game
Shahwat has a stick that has n blocks that are indexed from 1 to n (from first to last). Each block ...
Donate Our Department
We are students of CSE, IU. It is very well known that our departmental instruments are not so good....
Maximum Meetings
I am the boss of my company. I have n employees. The office time of my company starts at 1. Every em...
Palindrome and Queries
You'll be given an array A of N strings containing lowercase English letters only and Q queries. In ...
Jumping Frog (II)
A frog wants to cross a river. There are some posts in the river. The frog can go from one post to a...
Just Another Range Query
This is another simple range query problem where you will perform some updates and answer some queri...
Easy Prime!
There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...
Another Query on String
You are given a string S (of length n) consisting of alphabets only. You need to perform m queries o...
Itachi's Challenge
Sasuke is a 12-year old ninja who is very much interested in learning Ninjutsu (A tactic used by nin...
Birthday of Aliens
On the planet of Royal Royal, a university named Royal University of Engineering and Technology exis...
No Onion, No Cry
-Onions make us cry, don't they? They can make us happy too. -How? -Read the statement carefully! I...
Toph uses cookies. By continuing you agree to our Cookie Policy.