This problem is in Contest(s) below:
Contest 2018:程序设计基础1-计算机211(多分支判断)课后练习
Contest 2017:程序设计基础1-计算机211(多分支判断)