This problem is in Contest(s) below:
Contest 1064:2024-WE 百题大战09:递归、迭代法和结构体
Contest 1057:Python-第4章-字符串-2024