Underfail

2020 VietMX 0

You have recently fallen through a hole and, after several hours of unconsciousness, have realized you are in an underground city. On one of your […]

Hongcow’s Game

2020 VietMX 0

This is an interactive problem. In the interaction section below you will see the information about flushing the output. In this problem, you will be […]

Hongcow Draws a Circle

2020 VietMX 0

Hongcow really likes the color red. Hongcow doesn’t like the color blue. Hongcow is standing in an infinite field where there are n red points and m blue points. […]

New Year and Rating

2020 VietMX 0

Every Codeforces user has rating, described with one integer, possibly negative or zero. Users are divided into two divisions. The first division is for users […]

New Year and Fireworks

2020 VietMX 0

One tradition of welcoming the New Year is launching fireworks into the sky. Usually a launched firework flies vertically upward for some period of time, […]

New Year and Binary Tree Paths

2020 VietMX 0

The New Year tree is an infinite perfect binary tree rooted in the node 1. Each node v has two children: nodes indexed (2·v) and (2·v + 1). Polar bears love decorating the […]

New Year and Finding Roots

2020 VietMX 0

This is an interactive problem. In the interaction section below you will find the information about flushing the output. The New Year tree of height h is […]

Bash’s Big Day

2020 VietMX 0

Bash has set out on a journey to become the greatest Pokemon master. To get his first Pokemon, he went to Professor Zulu’s Lab. Since […]

Felicity is Coming!

2020 VietMX 0

It’s that time of the year, Felicity is around the corner and you can see people celebrating all around the Himalayan region. The Himalayan region […]