摘要: 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 20:02 zzzying 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 列车问题,十分经典的对栈运用的题目 阅读全文
posted @ 2017-07-18 19:19 zzzying 阅读(145) 评论(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:14 zzzying 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 Output对每个测试用例输出1行,即该表达 阅读全文
posted @ 2017-07-18 17:02 zzzying 阅读(197) 评论(0) 推荐(0) 编辑