This problem is in Contest(s) below:
Contest 1388:【YH28】07 for循环
Contest 1244:【YH23】06循环结构——for循环