Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1992 | 林子杰 | 08比较三个数的大小 | C++ | Wrong Answer | 0 MS | 252 KB | 451 | 2023-12-03 12:14:48 |
#include<iostream> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a>>b>>c; if(a>b&&a>c) if(b>c) d=a,e=b,f=c; else d=a,e=c,f=b; if(b>a&&b>c) if(a>c) d=b,e=a,f=c; else d=b,e=c,f=a; if(c>b&&c>a) if(a>b) d=c,e=a,f=b; else d=c,e=b,f=a; cout<<d<<' '<<e<<' '<<f<<endl; return 0; }
------Input------
97 95 4
------Answer-----
97
------Your output-----
97 95 4