//活动地址: 牛客春招刷题训练营 - 编程打卡活动 #include <iostream> #include<bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a ) { // 注意 while 处理多个 case string s = to_string(a); // 先转化为字符串方便操作 reverse(s.begin(), s.end());// 翻转字符串 b = stoi(s);// 再将字符串转化为整型 int c = a + b; cout << c; //cout << a + b << endl; } } ///活动地址: 牛客春招刷题训练营 - 编程打卡活动