| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 90456 | sh25_zhangyj | 求三位数各数位中最大值 | C++ | Accepted | 0 MS | 244 KB | 291 | 2026-06-05 15:44:30 |
#include<bits/stdc++.h> using namespace std; int main(){ int s[3]; int n; cin>>n; for(int i=0;i<3;++i){ s[i]=n%10; n/=10; } for(int i=2;i>-1;--i) cout<<s[i]<<" "; cout<<endl; sort(s,s+3); cout<<s[2]; return 0; }