码迷,mamicode.com
首页 > 其他好文 > 详细

优先队列(个人模版)

时间:2017-03-17 00:36:01      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:friend   div   bsp   code   队列   blog   int   struct   style   

优先队列:

 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;  

 

优先队列(个人模版)

标签:friend   div   bsp   code   队列   blog   int   struct   style   

原文地址:http://www.cnblogs.com/ECJTUACM-873284962/p/6562237.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!