A + B Problem
(http://acm.hdu.edu.cn/showproblem.php?pid=1000)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 753696 Accepted Submission(s): 231509
Problem Description
Calculate
A + B.
Input
Each line will contain two integers
A and
B. Process to end of file.
Output
For each case, output
A + B in one line.
Sample Input
1 1
Sample Output
2
A + B问题
时间限制:2000/1000 MS(Java / Others)内存限制:65536/32768 K(Java / Others)总提交:753696已接受提交:231509
问题描述
计算
A + B
。
输入
每一行包含两个整数
一个
和
乙
。处理结束文件。
产量
对于每种情况,在一行中输出
A + B。
codeing:
#include
int main()
{
int i, j;
while(scanf("%d%d", &i, &j) == 2)
printf("%d\n", i + j);
return 0;
}