A+B for Input-Output Practice (I)
2015-09-15 20:24
766 查看
Total Submission(s): 100947 Accepted Submission(s): 55770
[align=left]Problem Description[/align]
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.
[align=left]Input[/align]
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
[align=left]Output[/align]
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.
[align=left]Sample Input[/align]
1 5
10 20
[align=left]Sample Output[/align]
6
30
[align=left]Author[/align]
lcy
[align=left]Recommend[/align]
JGShining | We have carefully selected several similar problems for you: 1090 1091 1092 1093 1094
A+B for Input-Output Practice (I)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 100947 Accepted Submission(s): 55770
[align=left]Problem Description[/align]
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.
[align=left]Input[/align]
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
[align=left]Output[/align]
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.
[align=left]Sample Input[/align]
1 5
10 20
[align=left]Sample Output[/align]
6
30
[align=left]Author[/align]
lcy
[align=left]Recommend[/align]
JGShining | We have carefully selected several similar problems for you: 1090 1091 1092 1093 1094
#include<stdio.h> int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) printf("%d\n",a+b); return 0; }注意与A+BProblem一题相对比
相关文章推荐
- php 在线人数,今日访问量,总访问量统计
- PHP中静态(static)调用非静态方法详解
- php环境配置
- thinkphp实现数组分页示例
- thinkphp3.2版本 分页类 page.class.php url错误
- PHP扩展编写入门
- php函数mt_rand和rand 速度测试
- Yii文件(图片)上传时相关的方法
- Yii上传文件(头像)的一个例子(后端处理)
- PHP Socket 编程过程详解
- Yii 上传文件(头像)详解(三)
- vsftp命令使用:文件上传及下载
- Yii上传文件头像详解(二)
- php 类似ceil 小数位进一
- PHP 保持中文编码 json_encode 函数
- PHP 下载保存文件到本地
- ThinkPHP开发必备composer扩展包
- Yii上传文件(头像)详解(一)
- 搭建一个FTP服务器
- PHP 正则表达式