priority_queue<pair<int,int>,vector<pair<int,int>>,greater<pair<int,int>>>Q;
1.插入?例如:
Q.push(make_pair(0,s));
2.查找?例如:
x=Q.top().second;