提交时间:2024-11-08 07:12:45

运行 ID: 55532

#include<iostream> using namespace std; int main() { int num,g,s,b; cin>>num; g=num%10; s=num%100/10; b=num/100; cout<<b<<" "<<s<<" "<<g; int n; if(g>n) n=g; if(s>n) n=s; if(b>n) n=b; cout<<endl<<n; return 0; }