优先队列:
1 struct node 2 { 3 int u,len; 4 friend bool operator <(node a,node b) 5 { 6 if(a.len!=b.len) 7 return a.len<b.len; 8 else return a.u>b.u; 9 } 10 }nod;
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!