-->
当前位置:首页 > 题库

PROGRAMMING:Triangle judgment

Luz5年前 (2021-05-10)题库437
The coordinates of any three points on a given plane_ 1, y_ 1)$$、$$(x_ 2, y_ 2)$$、$$(x_ 3, y_ 3) Let's see if they can form a triangle.
###Input format:
Enter six numbers within the range of $$[- 100, 100] $, that is, the coordinates of three points $$X, in a row_ 1$$、$$y_ 1$$、$$x_ 2$$、$$y_ 2$$、$$x_ 3$$、$$y_ 3$$。
###Output format:
If the three points can not form a triangle, output "impossible" in one line; If you can, output the perimeter and area of the triangle in one line, with the format of "L = perimeter, a = area", and output to 2 decimal places.
###Input sample 1:
```in
4 5 6 9 7 8
```
###Output sample 1:
```out
L = 10.13, A = 3.00
```
###Input sample 2:
```
4 6 8 12 12 18
```
###Output sample 2:
```
Impossible
```






answer:If there is no answer, please comment