| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133126 | 万嘉宇 | 比较三个数大小II | C++ | Wrong Answer | 1 MS | 272 KB | 575 | 2025-10-14 20:01:01 |
#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>c) cout<<a<<" "<<b<<" "<<c; if(a>c>b) cout<<a<<" "<<c<<" "<<b; if(b>a>c) cout<<b<<" "<<a<<" "<<c; if(b>c>a) cout<<b<<" "<<c<<" "<<a; if(c>b>a) cout<<c<<" "<<b<<" "<<a; if(c>a>b) cout<<c<<" "<<a<<" "<<b; return 0; }
------Input------
346 423 123
------Answer-----
123 346 423
------Your output-----