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

HDU-1000 大水题,大坑题!

时间:2015-02-28 22:59:54      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

HDU-1000

A + B Problem

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 453082    Accepted Submission(s): 143595


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 main()
 4 {
 5    int a,b;
 6    while(cin>>a>>b)
 7    {
 8       cout<<a+b;
 9    }
10    return 0;
11 }


                         -leo lion

HDU-1000 大水题,大坑题!

标签:

原文地址:http://www.cnblogs.com/leo-lion/p/4306269.html

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