This problem is in Contest(s) below:
Contest 1015:NOIP结构体排序
Contest 1005:竞赛较难题型练习
Contest 1051:2021小学市赛贪心专题
Contest 1142:基础班-贪心
Contest 1031:贪心算法专题