Artem and Array

2020 VietMX 0

Artem has an array of n positive integers. Artem decided to play with it. The game consists of n moves. Each move goes like this. Artem chooses some element […]

Wilbur and Array

2020 VietMX 0

Wilbur the pig is tinkering with arrays again. He has the array a 1, a 2, …, a n initially consisting of n zeros. At one step, he can choose any index i and either add 1 to all […]