This problem is in Contest(s) below:
Contest 1047:2021冬春季刷题竞赛提高组
Contest 1074:长训班动规高阶专题