1. 程式人生 > >hdu 1000 A + B Problem

hdu 1000 A + B Problem

esc urn rip end ostream accep others cstring 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


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