International Olympiad

2020 VietMX 0

International Abbreviation Olympiad takes place annually starting from 1989. Each year the competition receives an abbreviation of form IAO’y, where y stands for some number of consequent last […]

Little Artem and Matrix

2020 VietMX 0

Little Artem likes electronics. He can spend lots of time making different schemas and looking for novelties in the nearest electronics store. The new control […]

Little Artem and 2-SAT

2020 VietMX 0

Little Artem is a very smart programmer. He knows many different difficult algorithms. Recently he has mastered in 2-SAT one. In computer science, 2-satisfiability (abbreviated as 2-SAT) is […]

Bear and Colors

2020 VietMX 0

Bear Limak has n colored balls, arranged in one long row. Balls are numbered 1 through n, from left to right. There are n possible colors, also numbered 1 through n. The i-th ball has color t i. […]

Bear and Two Paths

2020 VietMX 0

Bearland has n cities, numbered 1 through n. Cities are connected via bidirectional roads. Each road connects two distinct cities. No two roads connect the same pair of cities. Bear […]

Levels and Regions

2020 VietMX 0

Radewoosh is playing a computer game. There are n levels, numbered 1 through n. Levels are divided into k regions (groups). Each region contains some positive number of consecutive levels. The game […]

Bears and Juice

2020 VietMX 0

There are n bears in the inn and p places to sleep. Bears will party together for some number of nights (and days). Bears love drinking juice. They don’t […]

NP-Hard Problem

2020 VietMX 0

Recently, Pari and Arya did some research about NP-Hard problems and they found the minimum vertex cover problem very interesting. Suppose the graph G is given. Subset A of its vertices […]

Remainders Game

2020 VietMX 0

Today Pari and Arya are playing a game called Remainders. Pari chooses two positive integer x and k, and tells Arya k but not x. Arya have to find the value . […]

The Values You Can Make

2020 VietMX 0

Pari wants to buy an expensive chocolate from Arya. She has n coins, the value of the i-th coin is c i. The price of the chocolate is k, so Pari […]

TOF

2020 VietMX 3

Today Pari gave Arya a cool graph problem. Arya wrote a non-optimal solution for it, because he believes in his ability to optimize non-optimal solutions. […]

Robbers’ watch

2020 VietMX 0

Robbers, who attacked the Gerda’s cab, are very successful in covering from the kingdom police. To make the goal of catching them even harder, they […]

Kay and Snowflake

2020 VietMX 0

After the piece of a devilish mirror hit the Kay’s eye, he is no longer interested in the beauty of the roses. Now he likes […]

Optimal Point

2020 VietMX 0

When the river brought Gerda to the house of the Old Lady who Knew Magic, this lady decided to make Gerda her daughter. She wants […]