shunfurh
编程介的小学生
2017-09-17 13:41

Enclose It

  • it
  • lines
  • each

Given lengths of four line segments, you should tell the maximum area they could enclose.

An area is enclosed means it is isolated from the outer part by the four line segments.

Input

There are several test cases. Each case contains four integers in a line, each of which representing the length of a line segment. All integers are in the range of (0, 100).

Proceed to the end of file.

Output

For each test case, output the maximum area the lines could enclose, accurate up to 2 decimal places.

Sample Input

5 5 5 5

Sample Output

25.00

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换