提交时间:2021-06-26 16:16:41

运行 ID: 21092

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