Horje
Patrick and Shopping codeforces in c++ Code Example
Patrick and Shopping codeforces in c++
#include<iostream>
using namespace std;

int main()
{
	int d1, d2, d3, min1, min2;
	cin >> d1 >> d2 >> d3;
	min1 = min((d1 + d2 + d3), (d1 + d3 + d3 + d1));
	min2 = min((d2 + d2 + d1 + d1), (d2 + d3 + d3 + d2));
	cout << min(min1, min2) << endl;
	return 0;
}




Cpp

Related
c++ addition Code Example c++ addition Code Example
are maps sorted c++ Code Example are maps sorted c++ Code Example
opengl draw cresent moon c++ Code Example opengl draw cresent moon c++ Code Example
18 in 12 hour time Code Example 18 in 12 hour time Code Example
c++ get string between two characters Code Example c++ get string between two characters Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10