#K11731. 3D Euclidean Distance Calculator

    ID: 23534 Type: Default 1000ms 256MiB

3D Euclidean Distance Calculator

3D Euclidean Distance Calculator

In this problem, you are given the coordinates of two points in three-dimensional space. Your task is to compute the Euclidean distance between these points. The Euclidean distance between two points ((x_1, y_1, z_1)) and ((x_2, y_2, z_2)) is calculated using the formula: $$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}$$. The result should be rounded to four decimal places.

inputFormat

The input consists of a single line containing six space-separated numbers: (x_1), (y_1), (z_1), (x_2), (y_2), and (z_2).

outputFormat

Output the Euclidean distance between the two points, rounded to four decimal places.## sample

0 0 0 0 0 0
0.0000