This problem is in Contest(s) below:
Contest 1072:长训班BFS专题
Contest 1001:搜索专题测试