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 secondsMemory Limit: 64 MB
Balls for the passed test: 5
Complexity: 3% 228/235
Classes: Geometry
Example
Example input1 1 2 2 |
Example output1.414214 |
| ← The angle between the vectors | Problems | Accessory points on the line → |
