结构体优先队列 f070331 · 2022-07-26 20:46:50 · 个人记录 struct node { int a,b; bool operator<(const node fjs)const { return a<fjs.a; //从大到小 } }; priority_queue<node> q;