Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82668 付博苏逸 08三个数排序 C++ Wrong Answer 1 MS 272 KB 642 2024-07-13 14:32:42

Tests(1/10):


Code:

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


Run Info:

------Input------
64 56 55
------Answer-----
64 56 55
------Your output-----
55 56 64