2 solutions
Information
- ID
- 659
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- (None)
- # Submissions
- 146
- Accepted
- 36
- Uploaded By
#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; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.