This problem is in Contest(s) below:
Contest 1699:20210225练习
Contest 1209:pj专训4(初级) 贪心
Contest 1179:pj练习3-杂题和简单贪心