随笔分类 -  队列

HDU1020 Encoding 简单队列
摘要:简单队列 1 #include 2 #include 3 #include 4 using namespace std; 5 int main() 6 { 7 int n; 8 scanf("%d",&n); 9 queueq;10 char ch,str[10010... 阅读全文

posted @ 2014-04-27 11:25 >_< 阅读(85) 评论(0) 推荐(0)

HDU1412 {A} + {B} 简单队列
摘要:优先队列 1 #include 2 #include 3 #include 4 using namespace std; 5 int main() 6 { 7 priority_queue,greater >q; 8 int temp; 9 int n,m;10 wh... 阅读全文

posted @ 2014-04-27 09:51 >_< 阅读(100) 评论(0) 推荐(0)

HDU1896 Stones 简单队列
摘要:优先队列 1 #include 2 #include 3 using namespace std; 4 struct node 5 { 6 int p,d; 7 friend bool operatorb.d;10 return a.p>b.p;11 } ... 阅读全文

posted @ 2014-04-26 23:51 >_< 阅读(144) 评论(0) 推荐(0)

导航