This problem is in Contest(s) below:
Contest 1141:基础班-排序
Contest 1157:统计与计数
Contest 1033:2020秋季基础班打卡题
Contest 1003:竞赛基础题型练习