Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7343 邓小龙 08三个数排序 C++ Accepted 0 MS 260 KB 484 2025-04-19 18:26:39

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,s,d,f; cin>>a>>s>>d; if(a<s) { f=a,a=s,s=f; } if(a<d) { f=a,a=d,d=f; } if(s<d) { f=s,s=d,d=f; } cout<<a<<" "<<s<<" "<<d; return 0; }