Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
7293 limingyu 输入三个整数,按从大到小的顺序输出 C++ 通过 0 MS 284 KB 499 2022-12-25 15:49:52

Tests(1/1):


#include<iostream> using namespace std; int main () { int a,b,c; cin >> a>>b>>c; if(a>=b&&b>=c){ cout<<a<<" "<<b<<" "<<c<<endl; }if(b>=a&&a>=c){ cout<<b<<" "<<a<<" "<<c<<endl; }if(c>=b&&b>=a){ cout<<c<<" "<<b<<" "<<a<<endl; }if(a>=c&&c>=b){ cout<<a<<" "<<c<<" "<<b<<endl; }if(b>=c&&c>=a){ cout<<b<<" "<<c<<" "<<a<<endl; }if(c>=a&&a>=b){ cout<<c<<" "<<a<<" "<<b<<endl; } return 0; }


测评信息: