Welcome to ZOJ
130 - ZOJ Monthly, January 2014 - F
The Three Guys

Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge

Recent days, a joke spread out among Chinese social networks. "If Yao Ming, Guo Jingming and He Jiong lying on the ground, can they form a triangle?"

Some netizens think that it is impossible to form a triangle since Yao Ming is a basketball giant, while Guo Jingming and He Jiong are artists with short statures.

But another group of netizens came out and claim: "Yes, they can!" Someone even has presented a sketch to prove their theory:


There are three guys in somewhere of the world. They have learned of this idea and want to try it out by themselves. Given you the height of the three guys, please find out the maximum area of triangle they can form. The height consists of two parts: the upper part of body Ui and the lower part of body Li.


There are multiple test cases (about 3000). For each test case:

There are three lines. Each line consists of two integers Ui and Li (1 <= Ui, Li <= 150) indicates the height of two parts of the i-th guy.


For each test case, output the maximum area of triangle they can form. Any solution with a relative or absolute error of at most 1e-9 will be accepted.

Sample Input

10 10
20 20
30 30

Sample Output


Author: JIANG, Kai
Submit    Status