摘要:
#include<iostream>#include<functional>#include<queue>#include<vector>using namespace std;struct cmp1{ bool operator () (int &a, int &b) { return a > b ; // 从小到大排序,值 小的 优先级别高 }};struct cmp2{ bool operator () (int &a, int &b) { return a < b; // 从大到... 阅读全文