3 solutions

  • -2
    @ 2025-11-30 21:18:12

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

    Information

    ID
    1343
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    (None)
    # Submissions
    121
    Accepted
    60
    Uploaded By