Ordering Pizza

2020 VietMX 0

It’s another Startup finals, and that means there is pizza to order for the onsite contestants. There are only 2 types of pizza (obviously not, […]

Gotta Go Fast

2020 VietMX 0

You’re trying to set the record on your favorite video game. The game consists of N levels, which must be completed sequentially in order to beat the […]

Egg Roulette

2020 VietMX 0

The game of Egg Roulette is played between two players. Initially 2R raw eggs and 2C cooked eggs are placed randomly into a carton. The shells are left on […]

Buy Low Sell High

2020 VietMX 0

You can perfectly predict the price of a certain stock for the next N days. You would like to profit on this knowledge, but only want to […]

Pumping Stations

2020 VietMX 3

Mad scientist Mike has applied for a job. His task is to manage a system of water pumping stations. The system consists of n pumping stations, which […]

Delivery Club

2020 VietMX 1

Petya and Vasya got employed as couriers. During the working day they are to deliver packages to n different points on the line. According to the company’s […]

Palisection

2020 VietMX 0

In an English class Nick had nothing to do at all, and remembered about wonderful strings called palindromes. We should remind you that a string is […]

Arkady and a Nobody-men

2020 VietMX 2

Arkady words in a large company. There are n employees working in a system of a strict hierarchy. Namely, each employee, with an exception of the CEO, […]

Tanya and Password

2020 VietMX 0

While dad was at work, a little girl Tanya decided to play with dad’s password to his secret database. Dad’s password is a string consisting […]

One-Way Reform

2020 VietMX 0

There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecting each pair […]

Party

2020 VietMX 0

Note the unusual memory limit for the problem. People working in MDCS (Microsoft Development Center Serbia) like partying. They usually go to night clubs on […]

Producing Snow

2020 VietMX 0

Alice likes snow a lot! Unfortunately, this year’s winter is already over, and she can’t expect to have any more of it. Bob has thus […]

Perfect Security

2020 VietMX 0

Alice has a very important message M consisting of some non-negative integers that she wants to keep secret from Eve. Alice knows that the only theoretically secure […]

Primal Sport

2020 VietMX 0

Alice and Bob begin their day with a quick game. They first choose a starting number X 0 ≥ 3 and try to reach one million by the process described […]

Resource Distribution

2020 VietMX 0

One department of some software company has $n$ servers of different specifications. Servers are indexed with consecutive integers from $1$ to $n$. Suppose that the […]

Stairs and Elevators

2020 VietMX 1

In the year of $30XX$ participants of some world programming championship live in a single large hotel. The hotel has $n$ floors. Each floor has […]

Aztec Catacombs

2020 VietMX 0

Indiana Jones found ancient Aztec catacombs containing a golden idol. The catacombs consists of $n$ caves. Each pair of caves is connected with a two-way […]

May Holidays

2020 VietMX 0

It’s May in Flatland, and there are $m$ days in this month. Despite the fact that May Holidays are canceled long time ago, employees of […]

Big Secret

2020 VietMX 0

Vitya has learned that the answer for The Ultimate Question of Life, the Universe, and Everything is not the integer 54 42, but an increasing integer sequence […]