首页 > 学院 > 开发设计 > 正文

1000. A + B Problem

2019-11-06 07:19:16
字体:
来源:转载
供稿:网友
PRoblem DescriptionCalculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2

简单题

#include<iostream>using namespace std;int main(){ long long int a, b; while(cin >> a >> b) {a += b; cout << a << endl;}}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表