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