This problem is in Contest(s) below:
Contest 1252:【YH23】07for循环的简单嵌套
Contest 1403:【YH28】10 循环的简单嵌套