
栈+队列
文章平均质量分 65
yuebaba
鶸鶸鶸
展开
-
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-07-29 09:29:26 · 217 阅读 · 0 评论 -
看病要排队 HDU - 1873 (优先队列)
看病要排队这个是地球人都知道的常识。 不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。医生在看病时,则会在他的队伍里面选择一个优先权最高的人进行诊治。如果遇到两个优先权一样的病人的话,...原创 2018-07-29 09:30:33 · 306 阅读 · 0 评论 -
Train Problem I HDU - 1022
As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is the fastest all over t...原创 2018-07-31 20:39:26 · 128 阅读 · 0 评论 -
ACboy needs your help again! HDU - 1702
ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(. As a smart ACMer, you want to get ACboy out of the monster'...原创 2018-07-31 20:40:52 · 178 阅读 · 0 评论 -
Windows Message Queue HDU - 1509
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 wil...原创 2018-07-31 20:41:53 · 120 阅读 · 0 评论