Search
 
SCRIPT & CODE EXAMPLE
 

CPP

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: variabili in c++ 
Cpp :: MPI_Sendrecv 
Cpp :: c++ how to iterate through 2d array in c++ 
Cpp :: c++ starting syntaz 
Cpp :: appdivind c++ stuctures 
Cpp :: c++ program to use nmap 
Cpp :: pycuda install failed microsoft c++ 
Cpp :: printing sub arrays 
Cpp :: how to complie c++ to spesific name using terminal 
Cpp :: cast unreal c++ 
Cpp :: +++++++++ 
Cpp :: arrays to function c++ 
Cpp :: windows install cppcheck 
Cpp :: how to display score using SDL in c++ 
Cpp :: Configuring an c++ OpenCV project with Cmake 
Cpp :: how to input a file path in c++ 
Cpp :: Consider a pair of integers, (a,b). The following operations can be performed on (a,b) in any order, zero or more times: - (a,b) - ( a+b, b ) - (a,b) - ( a, a+b ) 
Cpp :: tutti i tipi di equazioni trigonometriche 
Cpp :: http://dcnet.ddns.ma/Connecter_Tuteur 
Cpp :: max stack 
Cpp :: c++ & operator 
Cpp :: deletion in bst 
Cpp :: void pointer c++ 
Cpp :: pointer to constant 
Cpp :: Dfs program in c++ 
C :: swapping of two numbers in c without temporary variable 
C :: pygame draw transparent rectangle 
C :: C float division 
C :: random number c 
C :: factorial in c using recursion 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =