Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78030 sh25_wangtaojie 求三位数各数位中最大值 C++ 通过 0 MS 244 KB 354 2025-12-26 15:17:42

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; }


测评信息: