Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90283 殷佳雨萱 08三个数排序 C++ Accepted 1 MS 272 KB 430 2024-09-10 23:01:07

Tests(10/10):


Code:

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