![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
优先队列
风之旅@
努力到一定的程度,幸运就会与你不期而遇
展开
-
HDU - 1509 Windows Message Queue
Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to this process, such as mouse click, text change, the system wi...原创 2018-10-11 16:59:18 · 106 阅读 · 0 评论 -
HDU - 4006 The kth great number
Xiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can choose to write down a number, or ask Xiao Bao what the kth great number is. Because the number written by Xiao Ming...原创 2018-10-08 13:52:08 · 100 阅读 · 0 评论 -
HDU - 1896 Stones(优先队列)
Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some games this time. T...原创 2018-10-07 22:22:15 · 134 阅读 · 0 评论 -
HDU - 1873 看病要排队
看病要排队这个是地球人都知道的常识。 不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。医生在看病时,则会在他的队伍里面选择一个优先权最高的人进行诊治。如果遇到两个优先权一样的病人的话...原创 2018-10-09 22:01:31 · 123 阅读 · 0 评论