This problem is in Contest(s) below:
Contest 1370:阶段练习
Contest 1424:小六新学期复习题
Contest 1482:寒假入门2班
Contest 1159:初一小朋友C++入门
Contest 1172:2018小六C++入门
Contest 1410:2019新小六暑假练习与作业