题目描述
A+B' 0
输入
题目有多组输入
每行有一组数据为两个整数 A B(< =A,B < =1e6)
输出
A+B'的和
样例输入
4 3 27 12 100 200
样例输出
7 48 102
#include<iostream>
using namespace std;
int r(int n){
int s=0;
while(n>0){
s=s*10+n%10;
n/=10;
}
return s;
}
int main() {
int a,b;
while(cin>>a>>b) {
cout<<a+r(b)<<endl;
}
return 0;
}