对于存储了pair类型的优先队列 priority_queue<pair<int, int>, vector<pair<int, int>>, greater<>> pq; 其排序按照p.first进行排序