看博客ing...
C :优先队列默认大的在前,自定义方式:
priority_queue<Node,vector<Node>,greater<Node> >q;//小顶堆
priority_queue<Node,vector<Node>,less<Node> >q;//大顶堆
https://blog.csdn.net/oranges_c/article/details/64128523
E:long long
看博客ing...
C :优先队列默认大的在前,自定义方式:
priority_queue<Node,vector<Node>,greater<Node> >q;//小顶堆
priority_queue<Node,vector<Node>,less<Node> >q;//大顶堆
https://blog.csdn.net/oranges_c/article/details/64128523
E:long long