给大家推荐个靠谱的公众号程序员探索之路,大家一起加油
A + B Problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 497518 Accepted Submission(s): 157723
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
#include<stdio.h>
int main()
{
int m,n;
while(scanf("%d %d",&m,&n)!=EOF)
{
printf("%d\n",m+n);
}
return 0;
}
Sample Output
2
Author
HDOJ
Recommend
We have carefully selected several similar problems for you: 1008 2003 1040 2000 2010