Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155685 解禾溪 08三个数排序 C++ Wrong Answer 1 MS 272 KB 670 2026-06-12 18:42:49

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


Run Info:

------Input------
41 22 45
------Answer-----
45 41 22
------Your output-----
45 41 45