mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
27 lines
246 B
C++
27 lines
246 B
C++
#include <iostream>
|
|
#include <iomanip>
|
|
using namespace std;
|
|
int main(){
|
|
int a,b,c,n;
|
|
cin >>a>>b>>c;
|
|
if(a>b){
|
|
n=a;
|
|
a=b;
|
|
b=n;
|
|
}
|
|
if(b>c){
|
|
n=b;
|
|
b=c;
|
|
c=n;
|
|
}
|
|
if(a>b){
|
|
n=a;
|
|
a=b;
|
|
b=n;
|
|
}
|
|
cout <<a<<" "<<b<<" "<<c;
|
|
return 0;
|
|
}
|
|
|
|
|