eolymp
bolt
Try our new interface for solving problems
Problems

Perimeter and area of triangle

Perimeter and area of triangle

Six real numbers $x_1, y_1, x_2, y_2, x_3, y_3$ --- the coordinates of triangle vertices are given. Find the perimeter and the area of a triangle. \includegraphics{https://static.e-olymp.com/content/dc/dc8d04c75ccd62e915c0a339428662a33b89a781.gif} \InputFile Six real numbers --- the coordinates of triangle vertices are given: $x_1, y_1, x_2, y_2, x_3, y_3$. The numbers do not exceed $100$ by absolute value. \OutputFile Print the perimeter and the area of a triangle with $4$ decimal digits.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3 2 7 6.5 10 1
Output example #1
19.3568 17.7500
Source SFE-2010 Variant 25