题解 | #23年OPPO-a的翻转#
23年OPPO-a的翻转
https://www.nowcoder.com/practice/dcce2d0cc8f740c29e0885df96c9d625
#include <iostream> using namespace std; using ll = long long; int main() { ll a; cin>>a; ll b=a; ll c=0; while(b>0){ c*=10; c+=b%10; b/=10; } cout<<a+c; } // 64 位输出请用 printf("%lld")