This problem is in Contest(s) below:
Contest 4725:入门-第15课-课堂练习
Contest 4729:湖州第一天(4)输入