摘要:
来源:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1603这题输入就是:1+21+3+2+53输出3113就是相当于一个简单的加减法计算器,输入输出保证符合规则。要是我原来肯定用笨拙的字符串处理来写,现在我不那么写了。很easy的写法。 1 #include <stdio.h> 2 int main() 3 { 4 int res,temp; 5 char c; 6 while(~scanf("%d",&temp)) 7 { 8 res= 阅读全文
posted @ 2013-01-16 13:55
symons
阅读(154)
评论(0)
推荐(0)
浙公网安备 33010602011771号