0
已解决
沈峻宇
资深天翼
资深天翼
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a>b){
if(a>c){
if(b>c){
cout<<c<<" "<<b<<" "<<a;
}
else{
cout<<b<<" "<<c<<" "<<a;
}
}
else{
cout<<b<<" "<<a<<" "<<c;
}
}
else{
if(a>c){
if(b<c){
cout<<b<<" "<<c<<" "<<a;
}
else{
cout<<b<<" "<<c<<" "<<a;
}
}
else{
cout<<b<<" "<<a<<" "<<c;
}
}
return 0;
}
50分代码,帮忙!