hdu 1000 A + B Problem

A + B Problem

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 682330    Accepted Submission(s): 212166


Problem Description
Calculate A + B.
 

 

Input
Each line will contain two integers A and B. Process to end of file.
 

 

Output
For each case, output A + B in one line.
 

 

Sample Input
1 1
 

 

Sample Output
2
 

 

Author
HDOJ
 

 

真正的水题   不过在复习算法  同时再补博客就加上了
 1 #include<stdio.h>
 2 #include<cmath>
 3 #include<iostream>
 4 #include<cstring>
 5 #include<algorithm>
 6 #include<queue>
 7 using namespace std;
 8 int main()
 9 {
10     int a,b;
11     while(~scanf("%d%d",&a,&b))
12     {
13         printf("%d\n",a+b);
14     }
15     return 0;
16 }

 

posted @ 2017-09-05 12:08  红雨520  阅读(108)  评论(0编辑  收藏  举报