Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
91622 sh25_ganzy 求三位数各数位中最大值 C++ 通过 0 MS 252 KB 238 2026-06-13 20:27:59

Tests(1/1):


#include<iostream> #include<cmath> using namespace std; int main(){ int n; cin>>n; int b,s,g; g=n%10; s=(n/10)%10; b=n/100; cout<<b<<' '<<s<<' '<<g<<endl; cout<<max(max(b,s),g); return 0; }


测评信息: