提交时间:2021-06-19 17:02:33
运行 ID: 20660
#include<bits/stdc++.h> using namespace std; int a,x,y,z,t; int main(){ cin>>a; x=a%10; y=a/10%10; z=a/100; if(y>z){ t=z; z=y; y=t; } if(x>y){ t=x; x=y; x=t; } cout<<z*100+y*10+x; return 0; }