c++priority_queue默认大根堆,小根堆要写priority_queue<T,vector<T>,greater<T> >。
c++priority_queue
priority_queue<T,vector<T>,greater<T> >