This problem is in Contest(s) below:
Contest 1016:python练习6_2020DLOI
Contest 1144:0206练习 1141-1147