Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71500 石晋骁 08三个数排序 C++ Wrong Answer 1 MS 264 KB 777 2024-04-24 21:48:39

Tests(6/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,big,z,small; cin >> a >> b >> c; if (a>b && a>c){ big = a; if (b>c){ z = b; small = c; cout << big << " " << z << " " << small; return 0; }else{ z = c; small = b; cout << big << " " << z << " " << small; return 0; } }else { if (b>a && b>c){ big = b; if (a>c){ z = a; small = c; cout << big << " " << z << " " << small; return 0; } }else{ if (c>a && c>b){ big = c; if (a>b){ z = a; small = b; cout << big << " " << z << " " << small; return 0; }else { z = b; small = a; cout << big << " " << z << " " << small; return 0; } } } } return 0; }


Run Info:

------Input------
46 84 50
------Answer-----
84 50 46
------Your output-----