Beautiful IP Addresses

2020 VietMX 0

The problem uses a simplified TCP/IP address model, please read the statement carefully. An IP address is a 32-bit integer, represented as a group of […]

Connected Components

2020 VietMX 0

We already know of the large corporation where Polycarpus works as a system administrator. The computer network there consists of n computers and m cables that connect some pairs […]

Parity Game

2020 VietMX 0

You are fishing with polar bears Alice and Bob. While waiting for the fish to bite, the polar bears get bored. They come up with […]

Fish Weight

2020 VietMX 0

It is known that there are k fish species in the polar ocean, numbered from 1 to k. They are sorted by non-decreasing order of their weight, which is a […]

Color the Carpet

2020 VietMX 0

Even polar bears feel cold when lying on the ice. Therefore, a polar bear Alice is going to make a carpet. The carpet can be […]

Splitting the Uniqueness

2020 VietMX 0

Polar bears like unique arrays ā€” that is, arrays without repeated elements. You have got a unique array s with length n containing non-negative integers. Since you are good friends with […]

Mystic Carvings

2020 VietMX 0

The polar bears have discovered a gigantic circular piece of floating ice with some mystic carvings on it. There are n lines carved on the ice. Each […]

Ksusha and Square

2020 VietMX 4

Ksusha is a vigorous mathematician. She is keen on absolutely incredible mathematical riddles. Today Ksusha came across a convex polygon of non-zero area. She is […]

Cube Problem

2020 VietMX 1

Yaroslav, Andrey and Roman love playing cubes. Sometimes they get together and play cubes for hours and hours! Today they got together again and they […]

Weird Game

2020 VietMX 0

Yaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn’t show up, Yaroslav and […]

Distinct Paths

2020 VietMX 0

You have a rectangular n × m-cell board. Some cells are already painted some of k colors. You need to paint each uncolored cell one of the k colors so that any […]

Close Vertices

2020 VietMX 0

You’ve got a weighted tree, consisting of n vertices. Each edge has a non-negative weight. The length of the path between any two vertices of the tree […]

Random Ranking

2020 VietMX 0

Imagine a real contest or exam of n participants. Every participant will get a particular score. We can predict the standings board more or less, if we […]

Morning run

2020 VietMX 0

People like to be fit. That’s why many of them are ready to wake up at dawn, go to the stadium and run. In this […]

Memory for Arrays

2020 VietMX 0

You get to work and turn on the computer. You start coding and give little thought to the RAM role in the whole process. In […]

Context Advertising

2020 VietMX 0

Advertising has become part of our routine. And now, in the era of progressive technologies, we need your ideas to make advertising better! In this […]

Tennis Rackets

2020 VietMX 0

Professional sport is more than hard work. It also is the equipment, designed by top engineers. As an example, let’s take tennis. Not only should […]

Special Task

2020 VietMX 0

Special Agent Smart Beaver works in a secret research department of ABBYY. He’s been working there for a long time and is satisfied with his […]

EKG

2020 VietMX 0

In the rush of modern life, people often forget how beautiful the world is. The time to enjoy those around them is so little that […]

PE Lesson

2020 VietMX 0

Smart Beaver decided to be not only smart, but also a healthy beaver! And so he began to attend physical education classes at school X. […]