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 |
20 |
10 |
20 |
35 |
5 |
Python, Java
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 |
20 |
10 |
20 |
35 |
5 |