开始 2023-09-09 00:00:00

20230909基础排序算法

结束 2023-09-15 00:00:00
Contest is over.
当前 2025-05-12 21:28:22

SB

include<bits/stdc++.h>

using namespace std; int main(){

double a,b,c,d[5];
cin>>a>>b>>c;
d[1]=max(max(a,b),c);
d[3]=min(min(a,b),c);
cout<<d[3]<<" ";
if(a!=d[1]&&a!=d[3]) cout<<a<<" ";
else if(b!=d[1]&&b!=d[3]) cout<<b<<" ";
else cout<<c<<" ";
cout<<d[1];
return 0;

}


wangweizhi  •  1年前

比赛已结束。