This problem is in Contest(s) below:
Contest 1037:Python-第5章-组合数据类型
Contest 1065:2022-WE 百题大战05:简单穷举
Contest 1074:Python初中级-APTIV-D-组合数据类型