| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 20660 | 汪天一 | 调整三位数,使其值最大 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 233 | 2021-06-19 17:02:33 |
#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; }