Logo
(追記) (追記ここまで)

31322번 - Swimming 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB54375.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}$.

제한

예제 입력 1

10 0
-10 0
0 0

예제 출력 1

31.4159265359

힌트

출처

Contest > Open Cup > 2014/2015 Season > Stage 2: Grand Prix of Siberia J번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /