提交时间:2024-01-23 16:42:58

运行 ID: 125308

#include<iostream>//a,b,c using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; if(a>b){ swap(a,b);//a=b,b=a }//b,a,c if(b>c){ swap(b,c);//b=c,c=b=a }//c,a,b if(a>b){ swap(a,b); } cout<<a<<" "<<b<<" "<<c; return 0; }