Editorial for UTS Open '21 P6 - Terra Mater
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Binary search the minimum danger factor
Instead of finding the minimum number of hills that must be adjusted, find the maximum number of hills that can be left alone. The height difference between each consecutive hill is at most
Partial Solution
Let
Full Solution
The condition
Comments