Run ID:143026
提交时间:2026-01-11 17:49:21
#include <iostream> using namespace std; int main(){ int num; cin >> num; int units = num % 10; int tens = (num / 10) % 10; int hundreds = (num / 100) % 10; int thousands = num / 1000; int new_num = units * 1000 + thousands * 100 + tens * 10 + hundreds; cout << new_num << endl; return 0; }