堆,大根堆(优先队列),小根堆
priority_queue<int> q1;//默认从大到小排序,整数中元素大的优先级高
priority_queue<int,vector<int>,greater<int> >q1; //默认从小到大排序
https://blog.csdn.net/yanyanwenmeng/article/details/78153192
堆,大根堆(优先队列),小根堆
priority_queue<int> q1;//默认从大到小排序,整数中元素大的优先级高
priority_queue<int,vector<int>,greater<int> >q1; //默认从小到大排序
https://blog.csdn.net/yanyanwenmeng/article/details/78153192
\usepackage{color}
\textcolor[rgb]{1,0,0}{文本}