BOJ 1 A+B Problem

A+B Problem
Accept:3524    Submit:8578
Time Limit:1000MS    Memory Limit:4000KB

 

Description

Calculate a+b

Input

Two integer a,b (0<=a,b<=100)

Output

Output a+b

Sample Input

1 1

Sample Output

2

 

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

 

 

 

posted @ 2013-05-05 13:55  ~~Snail~~  阅读(180)  评论(0)    收藏  举报