Codeforces 549G. Happy Line 贪心
很有意思的贪心:Let's reformulate the condition in terms of a certain height the towers, which will be on the stairs. Then an appropriate amount of money of a person in the queue is equal to the hei