landslide专题

Codeforces Global Round 10 F. Omkar and Landslide(贪心)

Omkar is standing at the foot of Celeste mountain. The summit is 𝑛 meters away from him, and he can see all of the mountains up to the summit, so for all 1≤𝑗≤𝑛 he knows that the height of the mount