#include <bits/stdc++.h>
using namespace std;
struct node{
int x,y;
bool operator <(node a,node b) {
return a.x > b.x;
}
};
priority_queue <node> q;
int main(){
q.push(node{2,0});
q.push(node{1,1});
while(!q.empty()){
cout << q.top().x << " " << q.top().y << endl;
q.pop();
}
return 0;
}
忘掉怎么写了
救救救救救