A + B Problem

A + B Problem

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

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
 
 
程序代码:
 
#include<stdio.h>
main()
{
    int a,b,sum;
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        sum=a+b;
        printf("%d\n",sum);
    }
}
posted @ 2013-03-21 13:43  王文城  阅读(146)  评论(0)    收藏  举报