Run ID:143257
提交时间:2026-01-11 19:31:48
#include <iostream> using namespace std; int main() { int n; cin >> n; int thousand = n / 1000; int hundred = (n / 100) % 10; int ten = (n / 10) % 10; int unit = n % 10; int result = unit * 1000 + thousand * 100 + hundred * 10 + ten; cout << result << endl; return 0; }