fork download
  1. #include<iostream>
  2. using namespace std;
  3. long long a,b,c;
  4. main(){
  5. cin>>a>>b>>c;
  6. cout<<min((a+b+c)/3,min(a+b,min(b+c,a+c)));}
Success #stdin #stdout 0s 3460KB
stdin
100 99 56
stdout
85