This problem is in Contest(s) below:
Contest 1051:南康中学2024级创新班信息学测试(课外)
Contest 1042:循环结构过关习题集(一)