HDU 1000 A + B Problem
2013-05-31 22:59
417 查看
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 题意:求输入的两个数之和。 分析:注意题目暗含循环输入输出。 AC源代码(C语言):
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 题意:求输入的两个数之和。 分析:注意题目暗含循环输入输出。 AC源代码(C语言):
1 #include<stdio.h> 2 int main() 3 { 4 int a,b; 5 while(scanf("%d%d",&a,&b)!=EOF) 6 printf("%d\n",a+b); 7 return 0; 8 }2013-01-13
相关文章推荐
- 【BZOJ1000】【POJ1000】【HDU1000】【Vijos P1000】A+B Problem
- hdu 1000 A + B Problem(Java)
- HDU 1000 A + B Problem
- [HDU1000] A + B Problem
- HDU 1000 A + B Problem 1001 Sum Problem
- JAVA hdu 1000(A + B Problem)&&hdu 1001(Sum Problem)
- 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
- 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
- HDU 1000 A + B Problem
- HDU1000:A + B Problem
- POJ 1000 && HDU 1000 A+B Problem(水~)
- HDU1000 A + B Problem