HDU1089
来源:互联网 发布:c语言中整型变量 编辑:程序博客网 时间:2024/06/07 00:47
A+B for Input-Output Practice (I)
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.
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 510 20
Sample Output
630//HDU1089 基础题//A+B for Input-Output Practice (I) http://acm.hdu.edu.cn/showproblem.php?pid=1089//2017.06.22 by wyj#include#include using namespace std;int main() {int a, b;while (scanf("%d%d", &a, &b) != EOF){printf("%d\n", a + b);}return 0;}
阅读全文
0 0
- HDU1089
- HDU1089
- hdu1089 Ignatius's puzzle
- 基本输入输出练习 hdu1089-1096
- HDU1089-1096输入输出基础题组
- 【计算几何初步-线段相交】【HDU1089】线段交点
- hdu1089 - A+B for Input-Output Practice (I)
- HDU1089 A+B for Input-Output Practice (I)
- 闭着眼睛也要会打的【数据的输入和输出有几道练习题】---- HDU1089-1096
- HDU1089-1092A+B for Input-Output Practice(入门题C,Java两个版本)
- HDU1089-HDU1096 A+B for Input-Output Practice (I)-(VIII)(入门必备训练)
- windows远程连接linux
- linux shell脚本删除某一行(sed)
- php验证身份证号码的正确性
- ZigBee简介
- Linux常用命令备忘录
- HDU1089
- 欢迎使用CSDN-markdown编辑器
- HDU
- Django mysql数据库支持
- Xshell连接不上阿里云服务器
- 接口调用报表结果
- Python——socket TCP编程
- 计算机网络__知识点集合1
- OkHttp+Xrecyclerview