Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145684 王一德 08比较三个数的大小 C++ Wrong Answer 0 MS 268 KB 575 2026-01-25 18:03:48

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; cin>>b; cin>>c; if(a<b&&a<c){ cout<<a<<" "; if(b<c){ cout<<b<<" "<<c; }else{ cout<<c<<" "<<b; } } if(b<a&&b<c){ cout<<b<<" "; if(a<c){ cout<<a<<" "<<c; }else{ cout<<c<<" "<<a; } } if(c<b&&c<a){ cout<<c<<" "; if(b<a){ cout<<b<<" "<<a; }else{ cout<<a<<" "<<b; } } return 0; }


Run Info:

------Input------
69 90 74
------Answer-----
90
------Your output-----
69 74 90