Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109457 田诗语 08三个数排序 C++ Accepted 1 MS 272 KB 538 2025-02-09 09:31:43

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,x=0; cin>>a>>b>>c; if(a<b){ x=a; a=b; b=x; } if(a<c){ x=a; a=c; c=x; } if(b<c){ x=b; b=c; c=x; } cout<<a<<" "<<b<<" "<<c<<endl; return 0; }