提交时间:2024-05-05 16:40:37

运行 ID: 145667

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