STLpriority_queue STL priority_queue#include<queue>//最小堆priority_queue <int,vector<int>,greater<int> > q;//最大堆,默认priority_queue <int,vector<int>,less<int> >q;