Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66072 邓嘉瑶 08三个数排序 C++ Accepted 0 MS 272 KB 495 2024-03-02 12:35:33

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ int a,b,c; cin>>a>>b>>c; if(a>=b&&b>=c){ cout<<a<<" "<<b<<" "<<c; return 0; } if(a>=b&&c>=b&&a>=c){ cout<<a<<" "<<c<<" "<<b; return 0; } if(b>=a&&a>=c){ cout<<b<<" "<<a<<" "<<c; return 0; } if(b>=a&&c>=a&&b>=c){ cout<<b<<" "<<c<<" "<<a; return 0; } if(c>=a&&a>=b){ cout<<c<<" "<<a<<" "<<b; return 0; } if(c>=a&&a<=b&&c>=b){ cout<<c<<" "<<b<<" "<<a; } return 0; }