This problem is in Contest(s) below:
Contest 1242:贪心算法
Contest 1508:贪心算法练习
Contest 1706:贪心算法练习
Contest 1945:贪心算法练习