#C11512. Minimum Garden Cost
Minimum Garden Cost
Minimum Garden Cost
You are given the prices of three different types of flowers. Your task is to select two different types of flowers such that the total cost is minimized. Formally, given three integers \(p\), \(q\), and \(r\) representing the prices, you need to compute the minimum value of \(p+q\), \(p+r\), and \(q+r\).
Input Constraints: All prices are positive integers and can be assumed to be within the range \(1 \leq p, q, r \leq 10^4\).
Example:
Input: 500 300 400 Output: 700
inputFormat
The input consists of a single line containing three space-separated integers \(p\), \(q\), and \(r\) representing the prices of the three types of flowers.
outputFormat
Output a single integer which is the minimum total cost to purchase two different types of flowers.
## sample500 300 400
700