提交时间:2022-11-27 17:27:39
运行 ID: 6254
#include<iostream> using namespace std; int main(){ int a=0,b=0,c=0; cin>>a>>b>>c; if(a<c&&b<c) { if(a<b){ cout<<c<<" "<<b<<" "<<a; }else{ cout<<c<<" "<<a<<" "<<b; } }else if(a<b&&c<b){ if(a>c){ cout<<b<<" "<<a<<" "<<c; }else{ cout<<b<<" "<<c<<" "<<a; } }else{ if(b>c){ cout<<a<<" "<<b<<" "<<c; } else{ cout<<a<<" "<<c<<" "<<b; } } return 0; }