优先队列
爱上键盘的小哥哥
这个作者很懒,什么都没留下…
展开
-
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.原创 2017-07-22 13:55:12 · 250 阅读 · 0 评论 -
Windows Message Queue
D - Windows Message Queue Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 2724DescriptionMessage queue is the basic fundamental of windows system.原创 2017-07-21 16:51:57 · 212 阅读 · 0 评论 -
最高的奖励
有N个任务,每个任务有一个最晚结束时间以及一个对应的奖励。在结束时间之前完成该任务,就可以获得对应的奖励。完成每一个任务所需的时间都是1个单位时间。有时候完成所有任务是不可能的,因为时间上可能会有冲突,这需要你来取舍。求能够获得的最高奖励。 Input 第1行:一个数N,表示任务的数量(2 第2 - N + 1行,每行2个数,中间用空格分隔,表示任务的最晚结束时间Ei以及对应的奖励Wi。原创 2017-11-07 10:58:04 · 275 阅读 · 0 评论