pq自定义比较

struct cmp{
	bool operator () (int x,int y){
		return x>y;
	}
};

表示 x>y ,x的优先级更低,也就是小根堆。

posted @ 2025-02-05 12:14  皮皮的橙子树  阅读(17)  评论(1编辑  收藏  举报