This problem is in Contest(s) below:
Contest 1015:NOIP结构体排序
Contest 1136:2022年暑期普及班-贪心