This problem is in Contest(s) below:
Contest 1280:2018小六练习
Contest 1326:高一学生课堂作业
Contest 1159:初一小朋友C++入门
Contest 1172:2018小六C++入门
Contest 1228:2018暑假新小六基础练习
Contest 1293:珠晖实小C++第一次作业