提交时间:2024-01-23 16:59:03
运行 ID: 125454
#include<iostream> using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; if(a>b&&a>c){ swap(a,c); cout<<a<<" "<<b<<" "<<c; } if(a>c&&c>b){ swap(a,b); cout<<a<<" "<<b<<" "<<c; } if(b>a&&a>c){ swap(c,a); cout<<a<<" "<<b<<" "<<c; } if(c>a&&a>b){ swap(b,a); cout<<a<<" "<<b<<" "<<c; } if(b>c&&c>a){ cout<<a<<" "<<b<<" "<<c; } if(c>b&&b>a){ cout<<a<<" "<<b<<" "<<c; } return 0; }