| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 88997 | sh25_zhoumy | 求三位数各数位中最大值 | C++ | 解答错误 | 0 MS | 244 KB | 287 | 2026-05-22 14:40:55 |
#include<bits/stdc++.h> using namespace std; int s[3]; int main(){ int n; cin>>n; for(int i=0;i<3;++i){ s[i]=n%10; n/=10; } for(int i=0;i<=2;++i) cout<<s[i]<<" "; cout<<'\n'; sort(s,s+3); cout<<s[2]; return 0; }