stl的priority_queue默认是大根堆? 那如果要写小根堆呢 求助重载(存int/long long型)
#include<bits/stdc++.h> using namespace std; priority_queue<int> q; const bool operator>(const int&x,const int&y){ return x<y; }
这不对嘛