没有参加笔试,优先队列实现的,测试用例能通过,大家帮忙看看有没有问题 import heapq import math class jichang(): def __init__(self, index, num): self.index = index self.num = num def __lt__(self, other): return self.num > other.num # return self.num < other.num def __eq__(self, other...