This problem is in Contest(s) below:
Contest 1392:BFS_YC
Contest 1513:bfs
Contest 1442:衡阳训练题
Contest 1413:队列
Contest 1405:队列bfs,新初二
Contest 1441:YC-NOIP普及