2305 - Expanding Triangle 2305 - Expanding Triangle 2305 - Expanding Triangle

Statistics Sub: 238 | AC: 130 | AC%: 54,62 | Score: 1,27
Created by Alfredo Fundora Rolo
Added by jmargilagos (2013-03-22)
Limits
Total Time: 8000 MS | Test Time: 2500 MS |Memory: 256 MB | Output: 64 MB | Size: 16 KB
Enabled languages
Available in

Description

Be ABC a given triangle. The side AB is prolonged starting from the vertex B and the point P is taken on the extension so that the distances of the vertex B coincide to the points A and P. Similarly, is prolonged the side BC starting from the vertex C and taken point Q on this extension so that the distances of the vertex C coincide to the points B and Q. Finally, the AC side is extended from the vertex A and the R point is taken on this extension to match the distances vertex A to points C and R. you. Knowing the lengths of the sides of the original triangle ABC, determine the value of the area of the triangle PQR.
Be ABC a given triangle. The side AB is prolonged starting from the vertex B and the point P is taken on the extension so that the distances of the vertex B coincide to the points A and P. Similarly, is prolonged the side BC starting from the vertex C and taken point Q on this extension so that the distances of the vertex C coincide to the points B and Q. Finally, the AC side is extended from the vertex A and the R point is taken on this extension to match the distances vertex A to points C and R. you. Knowing the lengths of the sides of the original triangle ABC, determine the value of the area of the triangle PQR.
Be ABC a given triangle. The side AB is prolonged starting from the vertex B and the point P is taken on the extension so that the distances of the vertex B coincide to the points A and P. Similarly, is prolonged the side BC starting from the vertex C and taken point Q on this extension so that the distances of the vertex C coincide to the points B and Q. Finally, the AC side is extended from the vertex A and the R point is taken on this extension to match the distances vertex A to points C and R. you. Knowing the lengths of the sides of the original triangle ABC, determine the value of the area of the triangle PQR.

Input specification

The first line contains an integer N (0 <N <= 100) representing the number of test cases. Each of the following N lines consists of three whole numbers X, Y and Z separated by space with 0 <X, Y, Z <= 1000. These numbers represent the length of the sides of the triangle ABC.
The first line contains an integer N (0 <N <= 100) representing the number of test cases. Each of the following N lines consists of three whole numbers X, Y and Z separated by space with 0 <X, Y, Z <= 1000. These numbers represent the length of the sides of the triangle ABC.
The first line contains an integer N (0 <N <= 100) representing the number of test cases. Each of the following N lines consists of three whole numbers X, Y and Z separated by space with 0 <X, Y, Z <= 1000. These numbers represent the length of the sides of the triangle ABC.

Output specification

The output will be N lines in each of which will be the value of the area of triangle PQR corresponding to each of the test cases with an accuracy of one decimal place.
The output will be N lines in each of which will be the value of the area of triangle PQR corresponding to each of the test cases with an accuracy of one decimal place.
The first line contains an integer N (0 <N <= 100) representing the number of test cases. Each of the following N lines consists of three whole numbers X, Y and Z separated by space with 0 <X, Y, Z <= 1000. These numbers represent the length of the sides of the triangle ABC.

Sample input

1
3 4 5

Sample output

42.0

Hint(s)




Recommendation

We have carefully selected several similar problems: 3473 | 2176 | 3165 | 1211 | 2853 | 1847