Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
99891 程诺 08三个数排序 C++ Accepted 1 MS 272 KB 568 2024-12-01 09:27:26

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ /** int a; cin>>a; if(a > 140){ cout<<"天才"; }else{ cout<<" "; } bool b = true; char c = 'a'; cout<<sizeof(c)<<" "<<sizeof(b); double max ,a,b,c; cin>>a>>b>>c; max = a; if(max<b){ max = b; } if(max<c){ max = c; } cout<<max; **/ 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 = b; b = a; a = temp; } cout<<a<<" "<<b<<" "<<c; return 0; }