Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7272 侯宜辰 08三个数排序 C++ Accepted 4 MS 264 KB 484 2025-04-12 12:09:22

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; }