Online Judge——1000.A+B Problem(c++)
发布时间
阅读量:
阅读量
Description
作为所有 Online Judge 的传统题目,你只需读两个整数,输出即可,保证输入的数绝对值不超过1000。
Input Format
一行,两个空格隔开的整数A,B。
Output Format
一个数A+B。
Sample Input
3 2
Sample Output
5
代码:
#include <iostream>
using namespace std;
int main()
{
int a, b;
while(cin >> a >> b)
cout << a + b << endl;
return 0;
}
全部评论 (0)
还没有任何评论哟~
