This problem is in Contest(s) below:
Contest 1173:基础课程-贪心