CodeForces 478C

思维 贪心

#include <cstdio>
#include <iostream>


using namespace std;



int main(){
    long long a,b,c;
    cin>>a>>b>>c;
    if(max(a,max(b,c))>(a+b+c-max(a,max(b,c)))*2)
       cout<<a+b+c-max(a,max(b,c))<<endl;
    else
       cout<<(a+b+c)/3<<endl;

}

 

posted @ 2021-10-10 13:32  Leviathan_Sei  阅读(42)  评论(0)    收藏  举报