Distance Between Two Points

Distance Between Two Points

Easy Computer Mathematics Geometry 20 views
Explanation Complexity

Problem Statement

Compute Euclidean distance between two points (x1,y1),(x2,y2) with 2 decimals.

Input Format

Four numbers x1 y1 x2 y2.

Output Format

One number.

Example

0 0 3 4
5.00

Constraints

|coords|

Input / Output Format

Input Format
Four numbers x1 y1 x2 y2.
Output Format
One number.
Constraints
|coords|

Examples

Input:
0 0 3 4
Output:
5.00

Example Solution (Public)

Computer Mathematics
Distance = sqrt((x2-x1)^2+(y2-y1)^2). Print with 2 decimals.

Official Solution Code

Distance = sqrt((x2-x1)^2+(y2-y1)^2). Print with 2 decimals.
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.