Distance to closest point

Distance to closest point. Given the coordinates of the three points A, B, and C on a line. Print a distance from the point A to closest point to it.

Input

Output

10
35
30

20

10
30
35

20

35
10
30

5

 

Leave a Reply

Your email address will not be published. Required fields are marked *