HDU1000 A + B Problem【基础题】

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wxd1233/article/details/82430569

A + B Problem

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


 

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

#include<stdio.h>
int main(void)
{
    int a,b;
    while(~scanf("%d%d",&a,&b))
    {
        printf("%d\n",a+b);
    }
    return 0;
} 

猜你喜欢

转载自blog.csdn.net/wxd1233/article/details/82430569
今日推荐