游客 Signup | Login
中文 | En

2699 - 三位数

编程:输入一个三位数,将原来的十位数字作为新三位数的百位数字,将原来的个数数字作为十位数字,将原来的百位数字作为个位数字。
例如:输入123
      输出231

Input

Output

Examples

Input

123

Output

231

Solution C++

#include<iostream>
using namespace std;
int main()
{
int n,a,b,c;
cin>>n;
a=n/100;
b=(n/10)%10;
c=n%10;
cout<<b*100+c*10+a<<endl;
return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题