| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 89001 | sh25_zhoumy | 求三位数各数位中最大值 | C++ | 通过 | 0 MS | 252 KB | 291 | 2026-05-22 14:42:15 |
#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; }