您的位置:首页 > 其它

BOJ 1 A+B Problem

2013-05-05 13:55 183 查看
[b]A+B Problem[/b]
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++]

#include<iostream>

using namespace std;

int main()
{
int a,b;
while(cin>>a>>b)
cout<<a+b<<endl;
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: