提交时间:2023-01-22 16:21:54

运行 ID: 6337

#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a=n%10; int b=n/10%10; int c=n/100; cout<<c<<" "<<b<<" "<<a<<endl; if(a>b){ if(a>c){ cout<<a; } else { cout<<c; } } else{ if(b>c){ cout<<b; } else{ cout<<c; } } return 0; }