提交时间:2026-01-04 15:42:02
运行 ID: 81216
#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; }