This problem is in Contest(s) below:
Contest 1115:搜索高阶练习
Contest 1102:2022寒假基础班练习题