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