题解 | #23年OPPO-a的翻转#
23年OPPO-a的翻转
https://www.nowcoder.com/practice/dcce2d0cc8f740c29e0885df96c9d625
#include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
int a,b;
cin>>a;
string s;
s=to_string(a);
reverse(s.begin(),s.end());
b = std::stoi(s);
cout<<a+b;
}
// 64 位输出请用 printf("%lld")
