Problem G
Goat Ropes
A farmer has
Input
There will be a single test case in the input. This test
case will begin with an integer
Output
Output a single floating point number, which indicates the maximum amount of rope that the farmer could possibly use, in meters. Output this value with exactly two decimal places, rounded to the nearest value.
Sample Input 1 | Sample Output 1 |
---|---|
2 250 250 250 750 |
500.00 |
Sample Input 2 | Sample Output 2 |
---|---|
3 250 250 500 500 250 750 |
603.55 |