提交时间:2023-06-15 20:38:09
运行 ID: 20294
#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; }