Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119861 杨启宏 08三个数排序 C++ Accepted 1 MS 268 KB 541 2025-05-20 19:56:04

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if (b>a){ max=b; b=a; a=max; } if (c>a){ max=c; c=a; a=max; } if (c>b){ max=b; b=c; c=max; } cout<<a<<" "<<b<<" "<<c; return 0; }