This problem is in Contest(s) below:
Contest 1427:程序设计基础B-上机3-大数据B251B252
Contest 1220:第四章上机练习课
Contest 1303:选择结构