Perimeter and area of triangle
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Six real numbers — the coordinates of triangle vertices are given. Find the perimeter and the area of a triangle.
Input
Six real numbers — the coordinates of triangle vertices are given: . The numbers do not exceed by absolute value.
Output
Print the perimeter and the area of a triangle with decimal digits.
Examples
Input #1
Answer #1
Submissions 21K
Acceptance rate 49%