提交时间:2024-05-18 08:02:12

运行 ID: 147240

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a, b, c, d; a=n/1000; b=n/100%10; c=n/10%10; d=n%10; cout << d*1000+c*100+b*10+a << endl; return 0; }