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 […]

Wilbur and Points

2020 VietMX 0

Wilbur is playing with a set of n points on the coordinate plane. All points have non-negative integer coordinates. Moreover, if some point ( x, y) belongs to the […]

Wilbur and Strings

2020 VietMX 0

Wilbur the pig now wants to play with strings. He has found an n by m table consisting only of the digits from 0 to 9 where the rows are numbered 1 to n and the columns […]