This problem is in Contest(s) below:
Contest 4785:基础B-第11课-课堂练习
Contest 5295:AK 张老师 入门D班 双重循环家庭作业