| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 5 | 4 | 3 | 75.000% |
Trying to reach Skumbriewitz, who was floundering around the buoy, Ostap Bender swam on his side, keeping an eye on Berlaga, who was sitting on the shore. Ostap's head was turned by a constant angle for the whole time. For that reason he swam along a curve rather than along a straight line, so the angle between the direction of his swimming and the direction to Berlaga was constant.
Your task is to find the length of Ostap Bender's trajectory.
The input file consists of three lines. Each of these lines contains two integers not exceeding 10ドル^5$ by absolute value. The first line contains the initial coordinates of Ostap Bender, the second line contains the coordinates of his destination -- Skumbriewitz, and the third line -- the coordinates of Berlaga. All defined points are pairwise distinct. It is guaranteed that Berlaga and Skumbriewitz didn't move while Ostap was swimming.
The input file must contain a single real number -- the length of the shortest trajectory from the initial position of Ostap to Skumbriewitz's buoy, given that the angle between the tangent to the trajectory and the direction to Berlaga was constant. Print the answer with a relative or absolute error not greater than 10ドル^{-8}$.
10 0 -10 0 0 0
31.4159265359