This problem is in Contest(s) below:
Contest 1089:棋盘类专题
Contest 1024:2019CSP普及模拟赛E
Contest 1085:2021CSP第二轮专题4-搜索