Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2674 孙浚轩 比较三个数大小II C++ Wrong Answer 0 MS 268 KB 296 2024-01-20 16:07:13

Tests(0/1):


Code:

#include<iostream> using namespace std; void temp(int x,int y){ int t; t=y; y=x; x=t; } int main(){ int a,b,c; cin>>a>>b>>c; if(b>c) temp(b,c); if(a>b) temp(a,b); if(a>c) temp(a,c); cout<<a<<" "<<b<<" "<<c<<endl; }


Run Info:

------Input------
346 423 123
------Answer-----
123 346 423
------Your output-----
346 423 123