fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. cout << max(max(a, b), c) + min(min(a, b), c);
  8. return 0;
  9. }
Success #stdin #stdout 0s 15240KB
stdin
8 11 6
stdout
17