This problem is in Contest(s) below:
Contest 1220:第四章上机练习课
Contest 1303:选择结构