Length of the segment
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given the coordinates of the endpoints of a line segment, x1, y1, x2, y2
, determine its length.
Input
Four integers: x1, y1, x2, y2
.
Constraints: -1000 < x1, y1, x2, y2 < 1000
.
Output
A single real number representing the length of the segment, rounded to two decimal places.
Examples
Input #1
Answer #1
Submissions 886
Acceptance rate 49%