12345678910111213141516171819 |
- #include<stdio.h>
- #include<math.h>
- int main()
- {int a,b,c,x;
- scanf("%d",&x);
- a=x/100;
- b=x/10%10;
- c=x%10;
- printf("%d\n",c*100+b*10+a);
- return 0;
- }
- /**************************************************************
- Problem: 1272
- User: acm
- Language: C++
- Result: 正确
- Time:0 ms
- Memory:944 kb
- ****************************************************************/
|