GDUFE ACM-1000 A+B
Posted ruoruoruoruo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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\n",A+B);
}
return 0;
}
以上是关于GDUFE ACM-1000 A+B的主要内容,如果未能解决你的问题,请参考以下文章