Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75568 sh25_shenpy 求三位数各数位中最大值 C++ 通过 0 MS 252 KB 253 2025-12-07 20:06:32

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main( ) { int x,a,s,d,m; cin>>x; a=x%10; s=(x-a)/10%10; d=(x-s*10-a)/100; m=max(a,s); m=max(m,d); cout<<d<<" "<<s<<" "<<a<<endl; cout<<m; return 0; }


测评信息: