Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82676 王陈淼 08三个数排序 C++ Accepted 1 MS 272 KB 295 2024-07-13 14:36:42

Tests(10/10):


Code:

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