Farewell Party

2020 VietMX 0

Chouti and his classmates are going to the university soon. To say goodbye to each other, the class has planned a big farewell party in […]

Missing Numbers

2020 VietMX 0

Chouti is working on a strange math problem. There was a sequence of $n$ positive integers $x_1, x_2, \ldots, x_n$, where $n$ is even. The […]

Tricky Interactor

2020 VietMX 0

This is an interactive problem. Chouti was tired of studying, so he opened the computer and started playing a puzzle game. Long long ago, the […]

Mergesort Strikes Back

2020 VietMX 0

Chouti thought about his very first days in competitive programming. When he had just learned to write merge sort, he thought that the merge sort […]

Long number

2020 VietMX 0

Consider the following grammar: <expression> ::= <term> | <expression> ‘+’ <term> <term> ::= <number> | <number> ‘-‘ <number> | <number> ‘(‘ <expression> ‘)’ <number> ::= […]

Yuhao and a Parenthesis

2020 VietMX 0

One day, Yuhao came across a problem about checking if some bracket sequences are correct bracket sequences. A bracket sequence is any non-empty sequence of […]

Makoto and a Blackboard

2020 VietMX 0

Makoto has a big blackboard with a positive integer $n$ written on it. He will perform the following action exactly $k$ times: Suppose the number […]

Alex and a TV Show

2020 VietMX 0

Alex decided to try his luck in TV shows. He once went to the quiz named “What’s That Word?!“. After perfectly answering the questions “How […]

Egor and an RPG game

2020 VietMX 0

One Saturday afternoon Egor was playing his favorite RPG game. While discovering new lands and territories, he came across the following sign: Egor is a […]