Time

12:15:02
23 May 2012
Version for print

Vector length

   Calculate the length of the vector.


Specifications

   Input

   Four integers x1, y1, x2, y2 - the coordinates of the beginning and end of the vector, respectively. All input data dp not exceed 10000 by absolute value.

   Output

   One number - the length of a given vector up to the sixth decimal place.


Problem information

Time Limit: 1 seconds
Memory Limit: 64 MB
Balls for the passed test: 5
Complexity: 3% 228/235
Classes: Geometry

Example

Example input

1 1 2 2

Example output

1.414214


← The angle between the vectors Problems Accessory points on the line →