作业帮 > 综合 > 作业

c程序acm题目A+B for Input-Output Practice (VII) Time Limit : 200

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/05/30 11:09:52
c程序acm题目
A+B for Input-Output Practice (VII)
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Font: Times New Roman | Verdana | Georgia
Font Size: ← →
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
Wrong Answer
http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1007&cid=5371&hide=0
password:123
c程序acm题目A+B for Input-Output Practice (VII) Time Limit : 200
//---------------------------------------------------------------------------
#include
int main(void)
{
int b,a;
while (scanf("%d%d",&a,&b)!=EOF)
{

printf("%d\n\n",a+b);
}
return 0;
}
//---------------------------------------------------------------------------