#18Easy
Distance between two points
Time: 1 s · Memory: 256 MB
- Variables and types
Statement
Two points are given on a plane: and . Find the distance between them:
Input format
A single line with four integers , , , (each at most in absolute value).
Output format
A single number — with exactly 2 digits after the decimal point.
Examples
Input
0 0 3 4
Output
5.00
Input
1 1 4 5
Output
5.00
Note
Square root: Python — math.sqrt, C++ — sqrt (<cmath>), Go — math.Sqrt. You do not need pow to square a number: is simply dx * dx.
