主页 讨论版 问题 名次 状态 统计

请自觉遵守比赛规则,违者严惩,不接受求情!

问题 H: Hexagon of Orz Pandas

问题 H: Hexagon of Orz Pandas

时间限制:1000 ms 内存限制:128 MB
提交:58 解决:19
[ 提交][ 状态][ 讨论版]

题目描述

A hexagon of which all angles are 120° is called “diaoable hexagon”.

Now Orz pandas have 6 segments and they want to create a room to live in with those segments.

Orz pandas wants the room to be diaoable and as large as possible.

In order to be Orzed you should help them determine the maximum area ofdiaoable hexagonyou can construct.


输入

There are multiple test cases(not more than 7000).
Each line will contain 6 integers indicating the length of each segment. Process to end of file.
1 ≤length≤ 10000

输出

For each test case, output the the maximum area ofdiaoable hexagonyou can construct in one line(if nodiaoable hexagonscan be constructed, “0” should be printed).
Note that you should round the answer to the nearest number with exactly two digits after the decimal point (0.005 rounds up to 0.01).

样例输入

1 1 1 1 1 1 2 3 3 3 3 3

样例输出

2.60 0

提示

[ 提交][ 状态][ 讨论版]
Baidu
map