GDUFE ACM-1000 A+B

题目:http://acm.gdufe.edu.cn/Problem/read/id/1000

A + B Problem

Time Limit: 2000/1000ms (Java/Others)

Problem Description:

 Caculate A + B. Process to end of file.

Input:

The input consists of multiple line, each line contain two integers A and B, which means you need EOF format.                                  

Output:

For each case,output A + B in one line.
Needn't to save all the cases' answer in an array, just output the A + B after each cases.

Sample Input:

1 2
4 5

Sample Output:

3
9



思路:很简单的一道题......就是把A和B加起来
复杂度分析:就是很简单...

附上我的代码:

#include<stdio.h>
int main()
{
int A,B;
while(scanf("%d%d",&A,&B)!=EOF)
{
printf("%d ",A+B);
}
return 0;
}

原文地址:https://www.cnblogs.com/ruo786828164/p/5892059.html