谁能大概解释一下这个贪心的正确性
原题:https://ac.nowcoder.com/acm/contest/39759/C
题解: https://blog.nowcoder.net/n/fac5459d3e35491195e8bf53e0a52aa3