
队列
hpulw
一个人一座城.....
展开
-
HDUOJ 1896(优先队列)
HDUOJ 1896#include#includeusing namespace std;struct stu{int lie;/*石头所在位置*/int s;/*石头所能扔的距离*/friend bool operator{if(a.lie!=b.lie)return a.lie>b.lie;else /*注意,题目要求当两个石头在同一原创 2015-07-29 13:55:13 · 501 阅读 · 0 评论 -
HDUOJ 1873看病要排队(优先队列)
HDUOJ 1873看病要排队(优先队列)看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6127 Accepted Submission(s): 2524Problem Description原创 2015-07-31 00:23:51 · 635 阅读 · 0 评论 -
HDOJ-1242(Rescue)(bfs+优先队列)
HDOJ-1242(Rescue)Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M Angel's friends want to save Angel. Their task原创 2016-03-03 18:10:52 · 400 阅读 · 0 评论