2 solutions

  • 1
    @ 2025-6-7 22:15:10

    #include using namespace std; int main() { int x,y,z,a,b,c; cin>>x>>y>>z; if(x+y<=z) { a=x+y; } else { a=z; } if(x+z<=y) { b=x+z; } else { b=y; } if(y+z<=x) { c=y+z; } else { c=x; } cout<<c<<endl<<b<<endl<<a; return 0; }

    Information

    ID
    659
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    (None)
    # Submissions
    146
    Accepted
    36
    Uploaded By