結果 : priority queue python code