Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71319 尚雨钒 08三个数排序 C++ Accepted 1 MS 280 KB 483 2024-04-22 18:54:44

Tests(10/10):


Code:

#include <iostream> 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>=c&&c>=b) { cout<<a<<" "<<c<<" "<<b; return 0; } if(b>=a&&a>=c) { cout<<b<<" "<<a<<" "<<c; return 0; } if(b>=c&&c>=a) { cout<<b<<" "<<c<<" "<<a; return 0; } if(c>=a&&a>=b) { cout<<c<<" "<<a<<" "<<b; return 0; } if(c>=b&&b>=a) { cout<<c<<" "<<b<<" "<<a; return 0; } return 0; }