Puzzle of 1's and 0's

There is a rectangular puzzle board containing N×MN \times MN×Mnumber of places. Each place contains...

Perhaps Strings Are Inevitable

Strings are inevitable in life. They give meaning to our expressions. Strings come in life in many w...

Permutation Query

An array of integers p1,p2,....,pnp_1,p_2,....,p_np1​,p2​,....,pn​ is called a permutation if it con...

Trina Loves Mangoes

Trina loves mangoes. And she is a valuable member of the famous Mango Eaters Community. This communi...

Help Dr. Wu

Dr. Wu is going to organize a competition. He has decided to judge the participants using an automat...

Lucky Number Seven

People often consider the number 777 as lucky. “But why?” - you might ask. Well, consider the fact t...

Matrix Resurrection

We have a two-dimensional matrix consisting of NNN rows and MMM columns. The rows are numbered from ...

XOR-Gun

YouKn0wWho has an integer sequence a1,a2,…,ana_1, a_2, \ldots, a_na1​,a2​,…,an​. He will perform the...

Give Me My Vector

I am in a hurry. I have nnn 2D vectors. And I have created all possible subsets of these nnn vectors...

Odd Query

A subsequence is a sequence that can be derived from the given sequence by deleting zero or more ele...

Once Upon a Time in Dhaka

Dhaka is one of the mega cities of Bangladesh. At different times, Dhaka was entitled differently by...

Old Wives' Game

Kadambari wants to test the brains of the new bride Mrinalini. So she proposed the infamous Old Wive...

Bi-Element Subsequence

You are participating in a game show. In the final round, the host pulls up a large sequence of posi...

Ator Ali's Income

Ator Ali loves to make money. He does not care whether his source of income is good or evil. As his ...

Car Selection

Alice and Bob are two friends. They want to buy two cars, one for Alice and one for Bob. That's why ...

The Feast

Nafia and Shishir like to feed pets. Today, Nafia has mmm chocolates and Shishir has mmm cakes for s...

Water

Dhoni has 3 types of water bottles. He has exactly aaa bottles of volume 0.5 liters, bbb bottles of ...

Yet Another Hello World

The greatest company, Pied Piper, is developing encryption systems. The company has already built MM...

Collectors Problem

The Bat club controls Gotham City. They decided to bring equality to the city (Of course, with some ...

Who Doesn't Love Shorter Strings?

I hope you are not someone who hates longer strings, or fears longer strings like me. Strings can be...

GoG

Alice and Bob are playing GoG. GoG is a two-player board game. It consists of a grid with nnn rows a...

And... Yet Another AND Problem

YouKn0wWho has an integer nnn. He wants to find an integer sequence aaa of size exactly 2n2n2n such ...

GPU-Business

You are a businessman who is fond of Vinia GPU. You buy Vinia GPUs from Byteland and sell them to Bi...

Cheap Tourist

The country of Byteland is divided into N provinces numbered from 1 to N. The provinces are connecte...

Crossword Puzzle II

A crossword puzzle consists of an MxN grid with M rows and N columns. Initially, some of the squares...

Toph uses cookies. By continuing you agree to our Cookie Policy.