This problem is in Contest(s) below:
Contest 1395:程序设计基础上机4:循环结构设计-大数据B241-B242
Contest 1307:循环结构