Cossack Vus and Friend at CP Olympiad#11

Cossack Vus and Friend at CP Olympiad (Editorial)

The solution is to simulate the process described in the problem. If the friend has points for a problem, then he cannot have fewer points for that problem by the end of the olympiad. This means that if we consider the number of points for a specific problem as a set, this set must be non-decreasing.

Problem Author:

Oleksandr Tymkovich

Problem Prepared by:

Oleksandr Tymkovich, Pavlo Tsikey

Editorial by:

Oleksandr Tymkovich