2 条题解
- 
  2
#include<bits/stdc++.h> using namespace std; int main(){ int n,g,s,b,d,z,x,c; cin>>n; g=n%10; s=n/10%10; b=n/100; if(g>s&&g>b){ d=g; if(s>b){ z=s; x=b; } else{ z=b; x=s; } } if(s>g&&s>b){ d=s; if(g>b){ z=g; x=b; } else{ z=b; x=g; } } if(b>s&&b>g){ d=b; if(s>g){ z=s; x=g; } else{ z=g; x=s; } } if(x==0) c=x;x=z;z=c;
cout<<x<<z<<d; return 0;}
 
信息
- ID
 - 243
 - 时间
 - 1000ms
 - 内存
 - 16MiB
 - 难度
 - 5
 - 标签
 - 递交数
 - 28
 - 已通过
 - 13
 - 上传者