This problem is in Contest(s) below:
Contest 1013:信息学奥赛校内选拔赛
Contest 1014:信息学奥赛校内选拔赛
Contest 1402:【银实小】08 while循环
Contest 1333:【YH27Z】09 while循环结构练习一