Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115981 | 常钰杰 | 08三个数排序 | C++ | Accepted | 1 MS | 268 KB | 751 | 2025-04-05 18:09:03 |
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a>b) { if(a>c) { if(b>c) { cout<<a<<" "<<b<<" "<<c; } else { cout<<a<<" "<<c<<" "<<b; } } else { cout<<c<<" "<<a<<" "<<b; } } else { if(b>c) { if(a>c) { cout<<b<<" "<<a<<" "<<c; } else { cout<<b<<" "<<c<<" "<<a; } } else { cout<<c<<" "<<b<<" "<<a; } } return 0; }