This problem is in Contest(s) below:
Contest 1064:BFS练习
Contest 1239:广搜练习
Contest 1504:广搜练习