This problem is in Contest(s) below:
Contest 9560:C++初级1班【王】-第8课-分支嵌套进阶
Contest 9550:2026春C++初级线上班-第08课-分支嵌套和多分支语句-susanliang