题解 | #23年OPPO-a的翻转#
23年OPPO-a的翻转
https://www.nowcoder.com/practice/dcce2d0cc8f740c29e0885df96c9d625
#include<stdio.h> int main() { int a,b=0; scanf("%d",&a); int c=a; while(a>0){ b*=10; if (a>10) { b+=a%10; }else if (a<10) { b+=a; } a/=10; } a=c; printf("%d",a+b); return 0; }