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

31356번 - Survival Route 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB9000.000%

문제

The surface of recently discovered planet i1c5l is a perfectly shaped sphere with radius $R$. Earth’s aerospace forces sent a research module Waldemar-63 that was supposed to land on the planet’s surface at point $A$. However, due to miscalculation, Waldemar-63 got to point $B$ instead. Fortunately, Waldemar series are equipped with a train of wheels that will help in getting to the initial destination point. Nevertheless, power capacity is quite limited so it is important to get to point $A$ by minimal distance run.

A major complication is that some point $O$ on the surface of the planet radiates waves of unknown origin. The waves spread inside the radius $r$ (the distance is measured on the surface). As the previous 62 missions show, any device that gets into the radiation area instantly breaks down. Thus, Waldemar-63’s route should avoid the radiation area. Find the minimal distance that the device has to undertake from $B$ to $A$.

입력

The first line contains integers $X_A,ドル $Y_A$ ($-90 \le X_A \le 90,ドル 180ドル \le Y_A \le 180$) --- coordinates (latitude and longitude in degrees) of point $A$. Second line --- coordinates of point $B$. Third --- three integers: coordinates of point $O$ and the radiation radius $r$. In the fourth line --- positive integer not exceeding 1000 --- planet’s radius $R$. It is guaranteed that points $A$ and $B$ are beyond the area of radiation.

출력

Output the distance determined. The answer is considered correct if the absolute or relative error is less than 10ドル^{-4}$.

제한

예제 입력 1

55 49
55 129
90 0 1
2

예제 출력 1

1.510687

힌트

출처

Contest > Open Cup > 2014/2015 Season > Stage 11: Grand Prix of Tatarstan > Division 1 A번

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

출처

대학교 대회

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

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