ACM训练
LXY9
这个作者很懒,什么都没留下…
展开
-
简单计算器
读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。Output 对每个测试用例输出1行,即该表达式的值,精确到小数点后2位。 Sample Input1 + 2 4 + 2 * 5 - 7 / ...原创 2018-02-26 22:41:59 · 947 阅读 · 0 评论 -
ACboy needs your help again!
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 a smart ACMer, you want to get ACboy out of the monster's ...原创 2018-02-26 22:41:45 · 186 阅读 · 0 评论 -
Buggy Sorting
Little boy Valera studies an algorithm of sorting an integer array. After studying the theory, he went on to the practical tasks. As a result, he wrote a program that sorts an array of n integers a1,...原创 2018-03-10 09:55:49 · 110 阅读 · 0 评论