This problem is in Contest(s) below:
Contest 1006:夏令营0723
Contest 1090:0331练习
Contest 1168:python 排序
Contest 1227:python 排序-Copy
Contest 1140:少年营二 1118