HDU 1089 输入输出实践(A + B)
来源:互联网 发布:人工智能对话app 编辑:程序博客网 时间:2024/05/22 00:07
A+B for Input-Output Practice (I)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 61828 Accepted Submission(s): 34709
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
就是计算A+B的和就好了
代码如下:
#include<iostream>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
{
cout<<a+b<<endl;
}
return 0;
}
- HDU 1089 输入输出实践(A + B)
- hdu 1000 A + B Problem 简单的输入输出(C、C++)
- A+B coming 多进制输入输出问题。hdu 1720
- HDU 2057 A+B again 16进制数输入输出
- NEUQ】A+B(基本输入输出4)
- 1004: A+B(基本输入输出4)
- hdu 1228 A + B()
- hdu-1576(A/B)
- 1012 A + B的输入输出练习(三)
- acm 输入输出处理入门 A+B(I) C++实现
- A+B输入输出练习系列 I
- A+B输入输出练习系列II
- Club1000:A+B 输入输出练习I
- Club1001:A+B 输入输出练习Ⅱ
- Club1002:A+B 输入输出练习Ⅲ
- Club1003:A+B 输入输出练习IV
- Club1004:A+B 输入输出练习V
- Club1005:A+B 输入输出练习VI
- 软件开发生命周期模型 瀑布模型、原型模型、螺旋模型、喷泉模型等
- SqlServer2008/2005生成数据字典的方法
- C语言中的三字母词(trigraph)
- 利用dispatch_once创建单例
- 注解 范型
- HDU 1089 输入输出实践(A + B)
- Queue Sequence HDOJ4441
- ubuntu12.04 下搭建android虚拟机遇到的问题
- C++ 智能指针详解
- c++设计和演化 笔记
- HDU 1403 字符串 后缀数组 只能说勉强会用后缀数组了
- __asm__ __volatile__内嵌汇编用法简述
- HDU 1090 A+B for Input-Output Practice (II)
- 在Mac中安装cmake