提交时间:2022-12-25 15:49:52
运行 ID: 7293
#include<iostream> using namespace std; int main () { int a,b,c; cin >> a>>b>>c; if(a>=b&&b>=c){ cout<<a<<" "<<b<<" "<<c<<endl; }if(b>=a&&a>=c){ cout<<b<<" "<<a<<" "<<c<<endl; }if(c>=b&&b>=a){ cout<<c<<" "<<b<<" "<<a<<endl; }if(a>=c&&c>=b){ cout<<a<<" "<<c<<" "<<b<<endl; }if(b>=c&&c>=a){ cout<<b<<" "<<c<<" "<<a<<endl; }if(c>=a&&a>=b){ cout<<c<<" "<<a<<" "<<b<<endl; } return 0; }