// #牛客春招刷题训练营# https://www.nowcoder.com/discuss/726480854079250432 #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s;//---------以字符串形式读取A cin >> s; string ss = s; reverse(s.begin(), s.end());//----------------反转获得B long long a, b; a = stoi(s);//-------------把字符串转回数字 b = stoi(ss); a += b;//--------相加,开ll防溢出 cout << a; return 0; } // 64 位输出请用 printf("%lld")