This problem is in Contest(s) below:
Contest 1016:python练习6_2020DLOI
Contest 1198:1023专题练习(指针移动、尺取法)
Contest 1144:0206练习 1141-1147