| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 21261 | 邢逸轩 | 调整三位数,使其值最大 | C++ | Accepted | 100 | 0 MS | 256 KB | 216 | 2021-06-27 08:04:52 |
#include<bits/stdc++.h> using namespace std; int a,aw[5]; int main(){ cin>>a; for(int i=1;i<=3;i++){ aw[i]=a%10; a/=10; } sort(aw+1,aw+4); for(int i=3;i>=1;i--){ cout<<aw[i]; } return 0; }