跳到正文

个人记录

结构体优先队列

f070331约 1 分钟
原文
文章信息与版本

文章信息

发布
2022年7月26日
收录
2026年8月15日
更新
2026年11月16日
篇幅
约 1 分钟

版本

  1. v1当前
C++
struct node {
	int a,b;
    bool operator<(const node fjs)const {
    	return a<fjs.a; //从大到小
    }
};

priority_queue<node> q;
原文