Mina and Raju

Everyone know about Mina & Raju. They are siblings as well as good friend. The friend-circle of ...

Passwords

Alice wants to extract some passwords from a random string. A password can have any number of charac...

Game of Palindromes

In a popular computer game, Game of Palindromes also known as GOP there is a city called Palindesh. ...

Hardest Problem Ever

Prof.Dr.DP is very famous professor. He is expert (actually legendary grandmaster) in Dynamic Progra...

Unique Relief

Thanos has now figured out how to visit all the houses in the flood-affected area. However, now he h...

Buildings

There are n buildings in a row. The height of the i'th building is hi. You have ৳k. It is the am...

Rainy Day

You have to complete N tasks tomorrow, where each task can last for any number of minutes. Each task...

Assigning Workstations

Penelope is part of the admin team of the newly built supercomputer. Her job is to assign work-stati...

Convert String Into Palindrome

A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar...

Déjà Vu

Thor, the Thunder God is fighting a horde of monsters in a cave. The cave is so narrow that it can b...

Interesting Pile Game

Turja and Akash are playing an interesting game. Initially a pile of N stones is given to them. Each...

Ekupai

Hacker robot Ekupai is trying to hack a supercomputer. He needs a cheat code X to hack this computer...

Paranoid Trading

You have been newly appointed as the accountant of Michael Corleone - the famous mafia boss. Your ta...

Fantastic Food

As we all know that Alice and Bob just landed in Fantastic World and are going to stay for the next ...

Demonic Subset

Lets not waste your time with long tiring problem statement and just go straight to the point. You a...

Train Hijack

You and your friend Daneliya Tuleshova are planning to hijack a train. Your friend will go inside a...

Ne-Zu-Ko Chaaaaaaaaaaaaan!

Tanjiro and his sister Nezuko live in a village that is shaped like a circle with a radius R. There&...

String Is Not That Easy

Let's consider a string S which is obtained by concatenating the non-negative integers from 0 to...

Super Mario Bros

Every kid loves to play Super Mario Bros. Mario moveু forward and collects coins in a stage. Stages ...

Permutations and Divisors

Let P be a permutation of length n where each value from 1 to n occurs exactly once. A subsequence o...