Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81216 sh25_zhangyy 求三位数各数位中最大值 C++ 通过 0 MS 240 KB 352 2026-01-04 15:42:02

Tests(1/1):


#include <iostream> #include <algorithm> using namespace std; int main() { int n; cin >> n; int hundreds = n / 100; int tens = (n / 10) % 10; int units = n % 10; cout << hundreds << " " << tens << " " << units << endl; int max_digit = max({hundreds, tens, units}); cout << max_digit << endl; return 0; }


测评信息: