priority_queue<pair<int, int>,vector<pair<int,int> >,greater<pair<int,int> > >p3; //定义比较麻烦,别打错了 pair<int, int>a4(1, 2); pair<int, int>a5(1, 1); pair<int, int>a6(2, 1); p3.push(a4); p3.push(a5);
priority_queue<pair<int, int>,vector<pair<int,int> >,greater<pair<int,int> > >p3; //定义比较麻烦,别打错了 pair<int, int>a4(1, 2); pair<int, int>a5(1, 1); pair<int, int>a6(2, 1); p3.push(a4); p3.push(a5);