摘要: Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though it o 阅读全文
posted @ 2017-07-18 20:43 余生漫漫浪 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Colonel has n badges. He wants to give one badge to every of his n soldiers. Each badge has a coolness factor, which shows how much it's owner reached 阅读全文
posted @ 2017-07-18 19:58 余生漫漫浪 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebu 阅读全文
posted @ 2017-07-18 19:17 余生漫漫浪 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 很方,不包括括号的计算器都做不出,只能借鉴学长们的思路,感觉小脑袋瓜还不够机灵!!! 题目:读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 要求:测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一 阅读全文
posted @ 2017-07-18 15:40 余生漫漫浪 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 某城有一火车站,有n节车厢从A方向驶入车站,按进站顺序为1~n,要求:让它按照某种特定顺序进入B方向的铁轨并驶出车站。其中有一个中转站C,用来重组车厢。 A有俩种方式出站,一是借助中转站C,这涉及到栈的问题,二是直接从B出去。所以要判断出站顺序就只要判断B出站的车厢在此时的A与以C作为中转站的栈的栈 阅读全文
posted @ 2017-07-18 11:15 余生漫漫浪 阅读(185) 评论(0) 推荐(0) 编辑