摘要: 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。Output 对每个测试用例输... 阅读全文
posted @ 2017-04-11 23:40 南风古 阅读(223) 评论(0) 推荐(0) 编辑
摘要: In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in or... 阅读全文
posted @ 2017-04-11 16:25 南风古 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn’t know the language the Martians use. The Martian gives ... 阅读全文
posted @ 2017-04-11 10:03 南风古 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Problem Description Fibonacci数列,定义如下: f(1)=f(2)=1 f(n)=f(n-1)+f(n-2) n>=3。 计算第n项Fibonacci数值。Input 输入第一行为一个整数N,接下来N行为整数Pi(1#includeint a[1002][... 阅读全文
posted @ 2017-04-11 07:52 南风古 阅读(131) 评论(0) 推荐(0) 编辑