This problem is in Contest(s) below:
Contest 1035:广度优先搜索(提高篇)