Ticket Counter
Most of you have been to newly built Khulna Railway Station. Let's say there is only one ticket coun...
Infinite Shuffler
HeRock made an infinite array shuffler, which he thinks nobody can hack. The machine takes an infini...
Mettaton Attacks
This is an interactive problem. Mettaton, the star of underworld TV show attacks you again with his ...
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...
The Answer to Everything
What is the answer to the ultimate question of Life, the universe, and everything? It is You will be...
Rotation and Queries
You will be given a string S consisting of lowercase English characters and N queries. In each query...
Invite the Heroes
There are n cities numbered from 1 to n in a country. Two consecutive cities are connected by a bidi...
Shelly's Adventure
Shelly and her friends have set out on an adventure and have come across an island. The island has a...
Stuck at Home
After researching the Coronavirus researcher come up with a solution to tackle all kinds of mutation...
Prefix and Suffix
Initially, you are given an empty array A. You have to perform the following queries. 1 P - Add an i...
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 ...
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...
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...
Network Reach
Shohurephone, the popular telecom company in Swapnodesh has received a lot of backlash over the last...
Easy Pythagorean Triplet
One day Mostafiz and Evan were talking about Pythagoras. Mostafiz told that Pythagorean Triplet is v...
Alter
___________________________________________________________________ the solution is yet to be found ...
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...
Two Words
Given a line of text (space-separated words), find the first word that appears at least twice in the...
Half Measures
The numbers 1,2,3,⋯n (each integer from 1 to n once) are written on a board. In one operation, Jesse...
Predict The Frequency
Luis was sleeping. He suddenly woke up with three positive integers N, M and X. He told his younger ...
Argentina Vs Saudi Arabia
Argentina Suffered one of the World Cup’s greatest shocks as Saudi Arabia came from behind to win an...
Reassemble
There are N posts in a line numbered from 1 to N from left to right. Each post i has a distance di​ ...
Gardening
You are given a tree with N vertices. Here, a tree is an undirected graph in which any two vertices ...
Peculiar Partitioning II
You are given an array a of length n. Each element of the array is a non-negative integer less than ...
Farewell
Alice has found an array A containing n non-negative integers, where the i-th element is named Ai​. ...
Toph uses cookies. By continuing you agree to our Cookie Policy.