UVa 121 - Pipe Fitters

Problem Number - Problem Name

 * UVa 121[]

Summary
Trivial geometry problem.

Explanation
Just calculate every possible pattern and find the max.

Gotchas
WAs might result from float rounding problem. A different formula or different way of calculating might work.

Input
3 3 2.9 10 2.9 10.5 11 11

Output
9 grid 29 skew 30 skew 126 skew