priority_queue<int>q;//默认不递增q.size();//q中有几个元素q.pop();//删除队首q.top();//返回队首元素q.push();//在队列中插入一个元素
//这是由小到大
struct cmp { bool operator ()(int a,int b)const { return a>b; } }; priority_queue<int,vector<int>,cmp>q;