- 龙凤苑中学A班5.22
三位数排序
- @ 2024-5-22 16:53:06
#include <bits/stdc++.h>
using namespace std;
int a,b,c;
int main() {
cin>>a>>b>>c ;
if(a>b) swap(a,b);
if(a>c) swap(a,c);
if(b>c) swap(b,c);
cout<<a<<" "<<b<<" "<<c;
return 0;
}
0 comments
No comments so far...