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

Tests(0/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------
4 43 85
------Answer-----
85 43 4
------Your output-----
85434