优先队列之自定义比较函数

#include <iostream> #include <vector> #include <unordered_map> #include <queue> #include <string> using namespace std; struct cmp{ /*在左边(也就是队尾),优先级越低 * 默认使用less,小数在左边优先级越低 * 可选greater,
相关文章
相关标签/搜索