[1095]:A+B for Input-Output Practice (VII)
2015-11-15 14:10
656 查看
A+B for Input-Output Practice (VII)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 57346 Accepted Submission(s): 38197
Problem Description
Your task is to Calculate a + b.
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, and followed by a blank line.
Sample Input
1 5
10 20
Sample Output
6
30
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 57346 Accepted Submission(s): 38197
Problem Description
Your task is to Calculate a + b.
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, and followed by a blank line.
Sample Input
1 5
10 20
Sample Output
6
30
#include<stdio.h> int main() { int i, j; while(scanf("%d%d", &i, &j)!=EOF){ printf("%d\n\n", i+j); } return 0; }
相关文章推荐
- [1094]:A+B for Input-Output Practice (VI)
- [1093]:A+B for Input-Output Practice (V)
- [1092]:A+B for Input-Output Practice (IV)
- [1091]:A+B for Input-Output Practice (III)
- [1090]:A+B for Input-Output Practice (II)
- [1089]:A+B for Input-Output Practice (I)
- php的安装配置
- php和html混写,遍历出二维关联数组
- php面向对象--多态
- php性能优化
- editplus移植U盘计划
- PHP程序中字符串的使用
- (PHP)正则表达式-preg_quote-转义正则表达式字符的用法
- (PHP)正则表达式-preg_split函数的用法
- 实现多个ContentProvider对多张表进行操作
- PHP程序中命名空间的使用
- php中类的继承
- PHP 判断指定IP,是否在一个IP段里
- 4步win7下简单FTP服务器搭建(试验成功)
- php处理图像的函数