Run ID:71500
提交时间:2024-04-24 21:48:39
#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; }