摘要: Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, t... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(125) 评论(0) 推荐(0)
摘要: Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to th... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(75) 评论(0) 推荐(0)
摘要: 看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(188) 评论(0) 推荐(0)
摘要: 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 ... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(91) 评论(0) 推荐(0)
摘要: 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 Output对每个测试用... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(104) 评论(0) 推荐(0)
摘要: The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standar... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(88) 评论(0) 推荐(0)
摘要: POJ 1611 - The Suspects Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global thr... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(80) 评论(0) 推荐(0)
摘要: POJ 1703 - Find them, Catch themThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs ... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(125) 评论(0) 推荐(0)
摘要: HDU 1272 - 小希的迷宫上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(92) 评论(0) 推荐(0)
摘要: 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述:第一种说法是"1 X Y",表示X和Y是... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(90) 评论(0) 推荐(0)