hdu 1000 A + B Problem
阿新 • • 發佈:2017-09-05
esc urn rip end ostream accep others cstring line in one
line.
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
Input Each line will contain two integers A and B. Process to end of file.
Output For each case, output A + B
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 intmain() 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