This problem is in Contest(s) below:
Contest 1016:python练习6_2020DLOI
Contest 1266:ss十一月竞赛组
Contest 1144:0206练习 1141-1147