This problem is in Contest(s) below:
Contest 1022:Python加强班作业14
Contest 1053:CCC-J模拟测试
Contest 1062: 032中级-晋级挑战
Contest 1040:CCC Junior 实战刷题