
130  ZOJ Monthly, January 2014  F
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 U_{i} and the lower part of body L_{i}. InputThere are multiple test cases (about 3000). For each test case: There are three lines. Each line consists of two integers U_{i} and L_{i} (1 <= U_{i}, L_{i} <= 150) indicates the height of two parts of the ith guy. OutputFor each test case, output the maximum area of triangle they can form. Any solution with a relative or absolute error of at most 1e9 will be accepted. Sample Input10 10 20 20 30 30 Sample Output600.000000000000 Author: JIANG, Kai 