Train Hijack
You and your friend Daneliya Tuleshova are planning to hijack a train. Your friend will go inside a...
I Hate Combinatorics!
Rick and Morty are being hunted by the galactic government. They ran away to the cell dimension. The...
Is This a Give-Away?
Once there lived an ancient mage named Farabi. He could always give perfect weather forecast. He nev...
Distinct Permutations
You are given two binary strings A and B. Recall that binary string is a non-empty sequence of chara...
Make Strings Great Again!
Do you know what is a sub-sequence? A sub-sequence is a sequence that can be derived from another se...
Chocolate
There is a shop named Chocolove in the Codeland. There are many chocolates in the shop. Each chocola...
Random Graphs
This problem is very easy. There's a graph of $N$ nodes. Each edge $u-v$ ($u >= v ; u = v$ is possib...
Milad's Lost Tree
Milad likes trees so much. He has a rooted tree with $n$ vertices each of which has some non-negativ...
MSIS!
Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...
Video Game
Shefin is playing a game. In this game there are N buildings numbered from 1 to N. Each building has...
Sgt. Laugh
That's it. Sgt. Laugh has had enough. He is determined to end the evil military reign of General Cry...
A Journey Towards One
Given N. You can perform 3 types of operations: Increase N by 1. Decrease N by 1. Divide N by 2, av...
Shrink the Array
You have an array of size N which contains positive integers. You can apply the following operation ...
Oishi Teacher and Her Naughty Class
Oishi teacher has returned to her class after the tiffin break. She noticed that some students who r...
Inversions and Goodbye
It's time to say goodbye to CSEmpur, at least for today. And so you wanted to give the citizens of C...
LIDS
We all know about LIS (Longest Increasing Sub sequence). The task to find the length of the longest ...
Polygon Construction (Hard)
Meera in going to picnic with her friends. They are going to have lots of fun. They will be doing va...
Third Dimension
Mr. J wants to learn about combinatorics. He started reading a book on combinatorics and came across...
No GCD
You are given N integers. Each integer is square free (i.e. it has no divisor which is a square numb...
OCD Returns!
This problem author has OCD (obsessive–compulsive disorder). One day his teacher gave him an array o...
Easy Sequence 1
Let’s define an easy sequence F. Where: F(1)=1 F(2X)=F(X)2+1 F(2X+1)=F(X)×F(X+1)+2 Here X is a posit...
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(...
The Game of Rocks
Alice and Bob have come up with a new game. Bob gives Alice a NxM grid that contains N rows and M co...
Gaaner Koli
The protagonists of this problem are two great programmers of a certain institution Omanush and Ordi...
The Perfect Collection
Given an array A of N integers, if we choose any K of these integers and calculate their bitwise XOR...
Toph uses cookies. By continuing you agree to our Cookie Policy.