结构体优先队列

· · 个人记录

struct node {
    int a,b;
    bool operator<(const node fjs)const {
        return a<fjs.a; //从大到小
    }
};

priority_queue<node> q;