竞赛
考级
芈月
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; 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; }
一枚button
法兰西玫瑰
一只可爱的七七
#include<iostream> #include<cmath> using namespace std; int main(){ int a,b,c,sum; cin >> a >> b >> c; sum=a+b+c; int maxn,minn; cout<< min(a,min(b,c))<<" "<<sum-min(a,min(b,c))-max(a,max(b,c))<<" "<<max(a,max(b,c)); }
屑小M
i am the best™半退
我是自愿上学的
6.
#include<iostream> using namespace std; int main() { double a,b,c,s; cin>>a>>b>>c; if(a<b) { s=a; a=b; b=s; } else if(b<c) { s=b; b=c; c=s; } else if(c<a) { s=c; c=a; a=s; } cout<<a; cout<<" "; cout<<b; cout<<" "; cout<<c; return 0; }
yxn
#include<bits/stdc++.h> using namespace std; int main(){ int a[3]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); cout<<a[0]<<" "<<a[1]<<" "<<a[2]; return 0; }
~Lyney~
ACOI
卢督庭
acgoacgo
#include <bits/stdc++.h> using namespace std; int a[5]; int main(){ cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); cout<<a[0]<<" "<<a[1]<<" "<<a[2]; return 0; }
张高纶
#include<iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(a>b){ swap(a,b); } if(b>c){ swap(b,c); } if(a>b){ swap(a,b); } cout << a << " " << b << " " << c; return 0; }
爱吃的圆吨吨
#include <iostream> using namespace std; int a[4]; int main(){ for(int i=1;i<=3;i++){ cin>>a[i]; } for(int i=1;i<3;i++){ for(int j=1;j<=3-i;j++) { if(a[j]>a[j+1]){ swap(a[j],a[j+1]); } } } for(int i=1;i<=3;i++){ cout<<a[i]<<" "; } return 0; }
Alex燃
耐高总冠军 张文杰
YuQing1919
正在减肥的吃货