#K3946. Calculate Shortest Path
Calculate Shortest Path
Calculate Shortest Path
In this problem, you are given the coordinates of two points in a 2D plane, (x1, y1) and (x2, y2). Your task is to calculate the Euclidean distance between these two points, rounded to two decimal places.
The Euclidean distance is given by the formula:
\(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\)
You must read the input from standard input and output the result to standard output.
inputFormat
The input consists of a single line containing four space-separated floating-point numbers: x1, y1, x2, and y2.
outputFormat
Output the Euclidean distance between the two points, rounded to two decimal places.
## sample1 2 4 6
5.00