- 题解
3个数排序
- 2024-3-22 17:56:52 @
#include<bits/stdc++.h>
using namespace std;
int main(){ int b,c,l,w;
cin>>b>>c>>l;
if(c>=b&&c>=l) {
w=b;
b=c;
c=w;
}
if(l>=c&&l>=b) {
w=b;
b=l;
l=w;
}
cout<<b<<" "<<c<<" "<<l;
return 0;
}
0 条评论
目前还没有评论...