hdoj A+B for Input-Output Practice (I)
2015-11-20 18:08
323 查看
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 20
Sample Output
6 30
代码:
#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) printf("%d\n",a+b); return 0; }
注意:水题
相关文章推荐
- 扩展实现php继承
- 微信开发1.基于Thinkphp3.2网站实现微信接入以及查询tooken值
- laravel5——事件
- PHP接口API文档转换SDK【适配ThinkPHP框架】
- Yii报错:SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in order clause is ambiguous
- YII重点文件
- 【ThinkPHP】SESSION保存机制修改
- MSTP基本配置
- php运行环境学习
- PHP 时间和日期
- PHP中单引号与双引号的区别分析
- PHP连接mysql
- PHP04
- loadrunner中lr_log_message和lr_output_message 的区别
- PHP的三种XML解析器之SimpleXML解析器(三)
- PHP语法(一):基础和变量
- 【ThinkPHP】验证码以及登陆例子
- PHP的三种XML解析器之DOM解析器(二)
- php 原生websocket
- Yii2事务