首页 > 其他 > 详细

HDU-1000 A + B Problem

时间:2017-10-07 10:26:09      阅读:265      评论:0      收藏:0      [点我收藏+]

题目

Problem Description

Calculate A + B.
 

Input

Each line will contain two integers A and B. Process to end of file.
 

Output

For each case, output A + B in one line.
 

Sample Input

1 1

 

Sample Output

2
 

题解

  愉快的水题……
 
 

代码

1 #include <iostream>
2 using namespace std;
3 int a,b;
4 int main() {
5     while(cin >> a >> b)
6         cout << a+b << endl;
7     return 0;
8 }

 

HDU-1000 A + B Problem

原文:http://www.cnblogs.com/skl-hray/p/7634041.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!