提交时间:2023-06-23 15:11:42
运行 ID: 21135
#include<bits/stdc++.h> using namespace std; int main(){ int n=0,a,b,c,d=0; cin>>n; a=n/100; b=n/10%10; c=n%10; if(a>b){ d=a; } else{ d=b; } if(c>d){ d=c; } cout<<a<<" "<<b<<" "<<c<<endl; cout<<d; return 0; }