599A Codeforces - Patrick and Shopping


599A Codeforces 


Patrick and Shopping 


++Solution in c

#include <iostream>

using namespace std;

int main()

{

    long long int a,b,c,d;

    cin>>a>>b>>c;

    cout<<min(2*(a+b),min(a+b+c,min(2*(c+a),2*(c+b))))<<"\n";


    return 0;

}

Share on Google Plus

About Mohamed Sobhi

My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo
My hobbies is programming ,and web development ,playing chess and writing horror stories.
    Blogger Comment
    Facebook Comment

0 التعليقات:

إرسال تعليق