题目:
输入:
123
输出:
321
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
cout << n % 10;
cout << n / 10 % 10;
cout << n / 100;
}
题目:
输入:
123
输出:
321
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
cout << n % 10;
cout << n / 10 % 10;
cout << n / 100;
}