This problem is in Contest(s) below:
Contest 1211:结构体
Contest 1972:语法提高-结构体练习-(2)结构体排序