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 […]

PolandBall and Hypothesis

2020 VietMX 0

PolandBall is a young, clever Ball. He is interested in prime numbers. He has stated a following hypothesis: “There exists such a positive integer n that for […]

PolandBall and Game

2020 VietMX 0

PolandBall is playing a game with EnemyBall. The rules are simple. Players have to say words in turns. You cannot say a word which was […]

PolandBall and Polygon

2020 VietMX 0

PolandBall has such a convex polygon with n veritces that no three of its diagonals intersect at the same point. PolandBall decided to improve it and draw […]

PolandBall and Forest

2020 VietMX 0

PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirected acyclic graphs with k vertices and k - 1 edges, where k is some integer. […]

PolandBall and Gifts

2020 VietMX 0

It’s Christmas time! PolandBall and his friends will be giving themselves gifts. There are n Balls overall. Each Ball has someone for whom he should bring a […]