标签:style 优先队列 white opera ret nod end 队列 node
1 struct node{ 2 int a; 3 int cost; 4 node(int a, int cost):a(a), cost(cost){} 5 friend bool operator < (node n1, node n2){ 6 return n1.cost > n2.cost; 7 } 8 }; 9 priority_queue<node> q;
标签:style 优先队列 white opera ret nod end 队列 node
原文地址:https://www.cnblogs.com/rstz/p/12359948.html