首页 > 其他 > 详细

GDUFE ACM-1000 A+B

时间:2016-09-21 13:01:27      阅读:262      评论:0      收藏:0      [点我收藏+]

题目: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

原文:http://www.cnblogs.com/ruo786828164/p/5892059.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!