This problem is in Contest(s) below:
Contest 1025:2018萌新作业10
Contest 1038:pyex萌新作业10
Contest 1054:18萌新作业10——分支结构,if,switch