
优先队列
yueqiq
这个作者很懒,什么都没留下…
展开
-
hdu1873 看病要排队
主要是学习一下优先队列的使用 code: #include #include using namespace std; struct node { int id,lv; friend bool operator < (const node x,const node y) { if(x.lv==y.lv) {原创 2012-09-05 20:49:56 · 2590 阅读 · 1 评论 -
hdu1509 Windows Message Queue
优先队列水题,真心不懂那个 code: #include #include #include using namespace std; struct Win { char name[50]; int id,val,parameter; friend bool operator < (Win a,Win b) { if(a.val==b.v原创 2012-09-24 16:06:11 · 414 阅读 · 0 评论