Run ID:114095
提交时间:2025-03-20 21:34:09
#include <iostream> using namespace std; int main() { int a; cin >> a; int thousand = a / 1000; int hundred = (a / 100) % 10; int ten = (a / 10) % 10; int one = a % 10; int result = one * 1000 + thousand * 100 + hundred * 10 + ten; cout << result << endl; return 0; }