HDU 1000 A + B Problem

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HDU 1000 A + B Problem相关的知识,希望对你有一定的参考价值。

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
 
题意:输入A,B输出A+B
 
#include <stdio.h>
int main()
{
    int a,b;
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        printf("%d\n",a+b);
    }
    return 0;
}

 

 

以上是关于HDU 1000 A + B Problem的主要内容,如果未能解决你的问题,请参考以下文章

HDU 1000 A + B Problem

HDU-1000 A + B Problem

Hdu 1000 A + B Problem

hdu 1000 A + B Problem

[HDU1000] A + B Problem

HDU 1000 A + B Problem(指针版)