Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
78702 | Kevin | 比较三个数大小II | C++ | Accepted | 1 MS | 268 KB | 286 | 2024-06-25 22:55:57 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,temp; cin>>a>>b>>c; if(a>b) { temp=a; a=b; b=temp; } if(a>c) { temp=a; a=c; c=temp; } if(b>c){ temp=b; b=c; c=temp; } cout<<a<<" "<<b<<" "<<c<<endl; return 0; }