#P5735. Triangle Perimeter

    ID: 18963 Type: Default 1000ms 256MiB

Triangle Perimeter

Triangle Perimeter

Given three non-collinear points \( (x_1, y_1) \), \( (x_2, y_2) \), and \( (x_3, y_3) \) in the plane, where each coordinate is a real number with absolute value not exceeding \(100.00\), compute the perimeter of the triangle formed by these points.

The distance between two points \( (x_1,y_1) \) and \( (x_2,y_2) \) is given by the formula:

\( dis=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2} \)

Output the triangle's perimeter rounded to two decimal places.

inputFormat

A single line containing six real numbers: x1 y1 x2 y2 x3 y3.

outputFormat

A single line with the perimeter of the triangle, rounded to two decimal places.

sample

0 0 3 0 0 4
12.00