|
#pragma warning(disable:4018)
|
|
#pragma warning(disable:4244)
|
|
#pragma warning(disable:4267)
|
|
#pragma warning(disable:4786)
|
|
#pragma warning(disable:4800)
|
|
#pragma warning(disable:4996)
|
|
#include "assert.h"
|
|
#include "ctype.h"
|
|
#include "float.h"
|
|
#include "math.h"
|
|
#include "stdio.h"
|
|
#include "string.h"
|
|
#include "stdlib.h"
|
|
#include "stdarg.h"
|
|
#include "time.h"
|
|
#include "algorithm"
|
|
#include "numeric"
|
|
#include "functional"
|
|
#include "utility"
|
|
#include "bitset"
|
|
#include "vector"
|
|
#include "list"
|
|
#include "set"
|
|
#include "map"
|
|
#include "queue"
|
|
#include "stack"
|
|
#include "string"
|
|
#include "sstream"
|
|
#include "iostream"
|
|
#define all(v) (v).begin(), (v).end()
|
|
typedef long long i64;
|
|
template <class T> void make_unique(T& v) {sort(all(v)); v.resize(unique(all(v)) - v.begin());}
|
|
using namespace std;
|
|
|
|
int rev(int x){
|
|
int res = 0;
|
|
do{
|
|
res *= 10;
|
|
res += x % 10;
|
|
x /= 10;
|
|
}while(x > 0);
|
|
return res;
|
|
}
|
|
|
|
int main(){
|
|
int T; scanf("%d", &T);
|
|
for(int t=0; t<T; ++t){
|
|
int a, b; scanf("%d %d", &a, &b);
|
|
a = rev(a), b = rev(b);
|
|
printf("%d\n", rev(a+b));
|
|
}
|
|
return 0;
|
|
} |