提交时间:2020-10-31 15:52:01
运行 ID: 8085
#include<bits/stdc++.h> using namespace std; int main(){ int n,g,s,b,q,ans; cin>>n; q=n/1000; n=n%1000; b=n/100; n=n%100; s=n/10; n=n%10; g=n; if(g!=0){ cout<<ans; } if(g==0){ ans=g*1000+s*100+b*10+q; cout<<0<<ans; } return 0; }