HDU
苍雪Blog
这个作者很懒,什么都没留下…
展开
-
HDU5670 —— Machine
There is a machine with m(2≤m≤30)m(2≤m≤30) coloured bulbs and a button.When the button is pushed, the rightmost bulb changes. For any changed bulb, if it is red now it will be green; if it is green...原创 2018-11-12 23:22:57 · 148 阅读 · 0 评论 -
HDU1237 简单计算器 【堆栈】
读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 Output 对每个测试用例输出1行,即该表达式的值,精确到小数点后2位。 Sample Input 1 + 2 4 + ...原创 2019-10-10 20:32:55 · 128 阅读 · 0 评论