标签:
题目:http://acm.gdufe.edu.cn/Problem/read/id/1000
Caculate A + B. Process to end of file.
The input consists of multiple line, each line contain two integers A and B, which means you need EOF format.
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.
1 2 4 5
3 9
思路:很简单的一道题......就是把A和B加起来
复杂度分析:就是很简单...
附上我的代码:
#include<stdio.h>
int main()
{
int A,B;
while(scanf("%d%d",&A,&B)!=EOF)
{
printf("%d\n",A+B);
}
return 0;
}
标签:
原文地址:http://www.cnblogs.com/ruo786828164/p/5892059.html