HDU1089 A+B for Input-Output Practice (I)
来源:互联网 发布:肖恩巴蒂尔数据 编辑:程序博客网 时间:2024/06/15 01:02
Problem Description
Your task is to Calculate a + b.
Too easy?! Of course! I specially designed the problem for acm beginners.
You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim.Input
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.Output
For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.Sample Input
1 5
10 20Sample Output
6
30Author
lcy代码
#include<iostream>using namespace std;int main(){ int a,b; while(~scanf("%d%d",&a,&b)){ printf("%d\n",a+b); } return 0;}
0 0
- hdu1089 - A+B for Input-Output Practice (I)
- HDU1089 A+B for Input-Output Practice (I)
- HDU1089-HDU1096 A+B for Input-Output Practice (I)-(VIII)(入门必备训练)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- 485. Max Consecutive Ones [LeetCode]
- Oracle学习笔记(二)
- POJ2785:4 Values whose Sum is 0(二分+暴力)
- HDU1002 A + B Problem II
- Gradle实战系列(二)__自动替换的配置文件
- HDU1089 A+B for Input-Output Practice (I)
- 用maven搭建SpringMVC框架(一)
- 将mdk工程转为cmake工程探索(一)
- HDU1090 A+B for Input-Output Practice (II)
- 使用SVProgressHUD时加入自定义Gif图片
- HDU1091 A+B for Input-Output Practice (III)
- LEXSTR
- HDU1092 A+B for Input-Output Practice (IV)
- Codeforces 229C 想法