HDU 1026 (Priority Queue + bfs)