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

A+B (III)

2019-11-10 16:49:55
字体:
来源:转载
供稿:网友

Your task is to Calculate a + b.

Input

There are multiple test cases. Each test case contains only one line. Each line consists of a pair of integers a and b(1=< a,b <=1016), separated by a space. Input is followed by a single line with a = 0, b = 0, which should not be PRocessed.

Output

For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.

Sample Input
1 510 2010000000000000000 100000000000000000 0Sample Output
63020000000000000000
#include <iostream>using namespace std;int main(){	long m,n;    while(cin>>m>>n,m+n)    	cout<<m+n<<endl;    return 0;}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表