Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99892 | 颜学俊逸 | 08三个数排序 | C++ | Accepted | 1 MS | 276 KB | 546 | 2024-12-01 09:28:36 |
#include<iostream> using namespace std; int main(){ /** int a; cin>>a; if(a>140){ cout<<"天才"; } else{ cout<<" "; } double a,b,c,max; cin>>a>>b>>c; max=a; if(max<b)max=b; if(max<c)max=c; cout<<max; bool a=true; char c='c'; cout<<sizeof(c)<<" "<<sizeof(a); **/ int a,b,c,temp; cin>>a>>b>>c; if(a>b){ temp = a; a = b; b = temp; } if(b>c){ temp = c; c = b; b =temp; } if(a>b){ temp = a; a = b; b = temp; } cout<<c<<" "<<b<<" "<<a; return 0; }