Mario and Princess Peach
The world of Mario can be imagined as 2D grid of $N$ rows and $M$ columns--containing a total of $N ...
Flower Garden
Trisha and her little sister Rafa loves gardening. They plant trees and water them everyday. When th...
Maximum Sum
Little Jimmy loves to play with numbers. One day he was playing with a number sequence. In his game,...
Different Standings
The 2016 Olympic Games is over, but in a planet far away from earth, there is a similar competition ...
Moderate 5/5/14
Very Dirty String
Strings are difficult, most of the contest programmers say this and try to avoid string algorithms. ...
Problem Setter Crisis
Competitive Programming is very popular in Leading University. There are many great achievements of ...
The Packaging Box
VHL is an international mail service company. Customers can send various packages to different place...
Bloodlust
Mr. X is a dangerous criminal. He likes to draw some geometric random stuff and get motivated for hi...
Gold Mines
The city of gridland is a grid with n rows and m columns. The city can be divided into n*m cells. A ...
DFS, Graph Moderate 53/68/260
Yet Another Update Query Problem
Given an array of n elements, you have to do Q operations. The operations can be of the following tw...
Undo History
Robin is using a peculiar text editor to write a sequence of lines of text. The editor consists of t...
This Is Too Hard ☹
Many many years ago there was a small country. And all the people there were very weird. They liked ...
Easy Sequence 2
Let’s define a easy sequence F. Where $ F(1) = 1 $ $ F(2X) = F(X)^2 + 1 $ $ F(2X+1) = F(X) \times F(...
Frog and Points
There are N stones on across the diameter of a perfectly circle shaped pond at equal distance. The 1...
Orchid Division
Quido has a square orchard full of various fruit and nut trees. The trees are planted in regular row...
Diagonal Sum
Given an N×N size matrix, you have to re-arrange the elements of the matrix in such a way that the d...
Lighthouse
Safwan is the new governor of the country Homeland. Homeland is formed with set of N islands having ...
Recursive Function
A common example of recursion goes something like this: long long recur(int x){ if (x==0){ return X0...
Fast Co-Prime
Two numbers A and B are called co-prime if the only common positive factor of the two numbers is 1. ...
Haunting of Herobrine
Herobrine's horror stories are known by many, but only a few dares to speak that name out loud, for ...
Mag the Mighty Kaidul
The winter is about to come. Mag the Mighty Kaidul is waiting for it for days. It is his favorite se...
Cut the Rope
Fahim is a rope seller. He has a special tool for cutting ropes. But recently this tool is behaving ...
Battle of Endor
After myriad battles and death of million rebel soldiers, it is high time to destroy the imperial ar...
Bad Neighbors
In the strange neighborhood of Nocu, a lot of people lives pretty happily, or so they think. Like mo...
Fitness Freak
Mr. Hoy Rodgeson is the coach of Pinkland Soccer Team (People whisper him being crazy). According to...
Toph uses cookies. By continuing you agree to our Cookie Policy.