Run ID:143023
提交时间:2026-01-11 17:48:42
#include <iostream> using namespace std; int main() { int num; std::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; std::cout << new_num << std::endl; return 0; }