c#终于迎来优先队列了 不用我们自己排序了
PriorityQueue<string, int> priorityQueue = new PriorityQueue<string, int>();
for (int i = 0; i < 10; i++)
{
int num = new Random().Next(1, 1000);
priorityQueue.Enqueue(num.ToString(), num);
}
string v = priorityQueue.Dequeue();
Console.WriteLine(priorityQueue.Dequeue());