This problem is in Contest(s) below:
Contest 1763:小学组第一天
Contest 1555:C++校本
Contest 1244:语言基础第二天
Contest 1651:字符练习