码迷,mamicode.com
首页 > 其他好文 > 详细

HDU-1000 A + B Problem

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

标签:using   题目   desc   pac   esc   clu   ret   names   ios   


题目

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

标签:using   题目   desc   pac   esc   clu   ret   names   ios   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!