2592 -
The Fence Builder North America - North Central - 2002/2003 | |||||
A fence builder has been given a strange task. Provided with N
There will be multiple cases in the input. For each case, the input begins
with the number of pieces of fencing (an integer, N
For each case, display the case number (starting with 1) and the maximum area
that can be enclosed by the provided fencing materials. Show three fractional
digits in each answer. Use the format shown below in displaying the results.
Input
Output
Sample
Input
3 2.0 2.0 2.0
4 1.0 1.0 1.0 1.0
4 5.0 5.0 3.0 11.0
0
Sample
Output
Case 1: maximum area = 1.732
Case 2: maximum area = 1.000
Case 3: maximum area = 21.000
North Central 2002-2003