| Final round of the 11th Regional Olympiad for the Governor’s Prize 2026, grades 9-10, Vologda Region |
|---|
| Finished |
Four points $$$A$$$, $$$B$$$, $$$C$$$ and $$$D$$$ are marked on a plane. No three of them lie on the same line.
A straight line is drawn through points $$$A$$$ and $$$B$$$. Find the coordinates of a point $$$M$$$ on this line such that the length of the polyline $$$CMD$$$ is minimized.
Each of the four input lines contains a pair of integers $$$x_i$$$, $$$y_i$$$, representing the coordinates of points $$$A$$$, $$$B$$$, $$$C$$$, and $$$D$$$, respectively ($$$-1000 \le x_i, y_i \le 1000$$$).
Output two real numbers $$$x_m$$$ and $$$y_m$$$ — the coordinates of point $$$M$$$. The relative or absolute error for each coordinate in your answer must not exceed $$$10^{-3}$$$.
Each test case is worth an equal number of points. The maximum score for the problem is 100.
2 1-3 -11 2-3 3
0.678160951 0.471264380
In Python, you can read two space-separated integers as follows: x, y = map(int, input().split())
| Name |
|---|


