Peculiar Partitioning II
You are given an array a of length n. Each element of the array is a non-negative integer less than ...
Gardening
You are given a tree with N vertices. Here, a tree is an undirected graph in which any two vertices ...
Reassemble
There are N posts in a line numbered from 1 to N from left to right. Each post i has a distance di​ ...
Argentina Vs Saudi Arabia
Argentina Suffered one of the World Cup’s greatest shocks as Saudi Arabia came from behind to win an...
Predict The Frequency
Luis was sleeping. He suddenly woke up with three positive integers N, M and X. He told his younger ...
Half Measures
The numbers 1,2,3,⋯n (each integer from 1 to n once) are written on a board. In one operation, Jesse...
Two Words
Given a line of text (space-separated words), find the first word that appears at least twice in the...
Fraction and Its Representation
Given three integers m,n,b (m<n), let’s consider the representation of m/n in base b. Since m<n, res...
Alter
___________________________________________________________________ the solution is yet to be found ...
Easy Pythagorean Triplet
One day Mostafiz and Evan were talking about Pythagoras. Mostafiz told that Pythagorean Triplet is v...
Network Reach
Shohurephone, the popular telecom company in Swapnodesh has received a lot of backlash over the last...
Help IKRI
Ikri has a binary string s of length n. (each character of s is either 0 or 1) The weight of the bin...
How Do You Make a Problem?
I am very busy these days. So when I was told, I have to create a problem for the contest, I was sli...
Counting Matrices
Given a natural number N and a prime p, let’s define a special set Zp​={0,1,2,…,p−1}. Now count the ...
Prefix and Suffix
Initially, you are given an empty array A. You have to perform the following queries. 1 P - Add an i...
Stuck at Home
After researching the Coronavirus researcher come up with a solution to tackle all kinds of mutation...
Shelly's Adventure
Shelly and her friends have set out on an adventure and have come across an island. The island has a...
Invite the Heroes
There are n cities numbered from 1 to n in a country. Two consecutive cities are connected by a bidi...
Rotation and Queries
You will be given a string S consisting of lowercase English characters and N queries. In each query...
The Answer to Everything
What is the answer to the ultimate question of Life, the universe, and everything? It is You will be...
Mr. X and Balloon Race
Mr. X is going to plan a game for the upcoming picnic for his company. Here are the rules, Every tea...
Mettaton Attacks
This is an interactive problem. Mettaton, the star of underworld TV show attacks you again with his ...
Infinite Shuffler
HeRock made an infinite array shuffler, which he thinks nobody can hack. The machine takes an infini...
Ticket Counter
Most of you have been to newly built Khulna Railway Station. Let's say there is only one ticket coun...
Birthday of Aliens
On the planet of Royal Royal, a university named Royal University of Engineering and Technology exis...
Toph uses cookies. By continuing you agree to our Cookie Policy.