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

New Year and Permutation

2020 VietMX 0

Recall that the permutation is an array consisting of $n$ distinct integers from $1$ to $n$ in arbitrary order. For example, $[2,3,1,5,4]$ is a permutation, […]

New Year and Naming

2020 VietMX 0

Happy new year! The year 2020 is also known as Year Gyeongja (경자년, gyeongja-nyeon) in Korea. Where did the name come from? Let’s briefly look at the Gapja system, which […]

New Year and Conference

2020 VietMX 0

Filled with optimism, Hyunuk will host a conference about how great this new year will be! The conference will have $n$ lectures. Hyunuk has two […]

New Year and Social Network

2020 VietMX 0

Donghyun’s new social network service (SNS) contains $n$ users numbered $1, 2, \ldots, n$. Internally, their network is a tree graph, so there are $n-1$ direct […]