This problem is in Contest(s) below:
Contest 1809:程序设计基础(学习支持)-—分支结构程序设计1
Contest 2346:学习支持-—程序设计基础2--分支