#include<iostream>
using namespace std;
int reserve(int a){
int hehe=0;
while(a!=0){
hehe=hehe*10+a%10;
a /= 10;
}
return hehe;
}
int main()
{
int n;
cin >> n;
while(n--){
int a,b;
cin >> a >> b;
cout << reserve(a) + reserve(b) << endl;
}
}
Sicily 4312. A + B
最新推荐文章于 2017-02-20 19:57:30 发布