Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110733 唐俊逸 08三个数排序 C++ Accepted 1 MS 272 KB 676 2025-02-22 18:56:00

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