This problem is in Contest(s) below:
Contest 1056:Python-第3章-流程控制-2024
Contest 1058:Python-第5章-组合数据类型-2024
Contest 1053:2024-WE 百题大战03:分支结构