登 录
#include<iostream> #include<iomanip> using namespace std; int main() { int a,b,c,t; cin>>a>>b>>c; if(a>b) { t=b;b=a;a=t; if(b>c) { t=c;c=b;b=t; } } else { if(b>c) { t=c;c=b;b=t; } } cout<<c<<" "<<b<<" "<<a<<endl; return 0; } d018: 三数排序
内容:
输入说明:
输出说明:
输入样例:
输出样例 :
提示 :
来源 :
抱歉!评论已关闭.