This problem is in Contest(s) below:
Contest 4873:北海小学提高组选拔测试
Contest 4754:湖州第五天(3)循环结构巩固