This problem is used in private contest:if 语句和 switch 语句