[1089]:A+B for Input-Output Practice (I)
2015-11-15 13:33
991 查看
A+B for Input-Output Practice (I)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 108427 Accepted Submission(s): 59099
Problem Description
Your task is to Calculate a + b.
Too easy?! Of course! I specially designed the problem for acm beginners.
You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim.
Input
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
Output
For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.
Sample Input
1 5
10 20
Sample Output
6
30
简单的题:对比1000
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 108427 Accepted Submission(s): 59099
Problem Description
Your task is to Calculate a + b.
Too easy?! Of course! I specially designed the problem for acm beginners.
You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim.
Input
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
Output
For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.
Sample Input
1 5
10 20
Sample Output
6
30
简单的题:对比1000
#include<stdio.h> int main() { int num1, num2; while(scanf("%d%d", &num1, &num2)!=EOF){ printf("%d\n", num1+num2); } return 0; }
相关文章推荐
- php的安装配置
- php和html混写,遍历出二维关联数组
- php面向对象--多态
- php性能优化
- editplus移植U盘计划
- PHP程序中字符串的使用
- (PHP)正则表达式-preg_quote-转义正则表达式字符的用法
- (PHP)正则表达式-preg_split函数的用法
- 实现多个ContentProvider对多张表进行操作
- PHP程序中命名空间的使用
- php中类的继承
- PHP 判断指定IP,是否在一个IP段里
- 4步win7下简单FTP服务器搭建(试验成功)
- php处理图像的函数
- 产品列表页分类筛选、排序的算法实现(PHP)
- Laravel学习实践(三)Laravel发送邮件
- zendstudio 出现failed to create the java machine转
- Mac平台搭建php平台
- PHP删除Array数组里指定的key(完整版,已封装成函数,附测试代码)
- PHP中empty和isset对于参数结构的判断及empty()和isset()的区别