This problem is in Contest(s) below:
Contest 1157:统计与计数
Contest 1097:2022小学市夏令营练习-一维数组