| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78021 | sh25_wangtaojie | 求三位数各数位中最大值 | C++ | 编译错误 | 0 MS | 0 KB | 311 | 2025-12-26 15:17:02 |
#include <iostream> 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; }