1000 A + B Problem
专栏文章
1000 A + B Problem
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
Code
#include
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
cout<<a+b<<endl;
return 0;
}- 上一页: 1001 Sum Problem
- 下一页: Linux 中个目录说明
专栏文章
- 1004 Let the Balloon Rise
- 1003 Max Sum
- 1002 A + B Problem II
- 1001 Sum Problem
- 1000 A + B Problem(当前)
- Presentation Error
- Who Won The Duel?
- 让气球升起来
- A == B ?
- 1005 Number Sequence
最近更新
最新评论