提交时间:2024-04-19 16:49:20
运行 ID: 45701
#include<iostream> using namespace std; int main() { int x; cin>>x; int a,b,c,e; a=x/100; b=(x-a*100)/10; c=(x-a*100-b*10)/1; e=0; if(a>e){ e=a; } if(b>e){ e=b; } if(c>e){ e=c; } cout<<a<<" "<<b<<" "<<c<<endl<<e; return 0; }