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

17985번 - Fence Bowling 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB38312781.818%

문제

Olav is spending an evening on his own, practicing in the bowling hall. Annoyingly, the side-rails in his lane are stuck in the active position, so if the ball goes out of bounds, then it simply bounces back in. This seems unfair to Olav, so he decide that any throw that does not bounce exactly k times in the fences before it hits the pins will be disqualified.

For this purpose, Olav has studied in detail how the ball bounces. His finding is that a ball hitting the fence with angle α relative to the normal, will bounce back with degree

arctan(2 tan(α))

relative to the normal. See the example in the picture to the right.

With which angle β relative to the normal against the rails should Olav throw the ball to hit a strike after first bouncing k times? Note that to hit a strike, Olav must hit exactly the middle of the bowling lane when the ball reaches the end of the lane. He always begins the throw from the middle of the lane as well.

입력

The first and only line of input contains three positive integers k, w and l. Here, k (1 ≤ k ≤ 10) is the number of bounces required, w (1 ≤ w ≤ 100) is the width of the bowling lane, and l (1 ≤ l ≤ 100) is the length of the bowling lane.

출력

A single real number, the angle β in degrees. Any answer within an absolute or relative error of 10−6 will be accepted as a correct answer.

제한

예제 입력 1

2 8 27

예제 출력 1

36.8698976

힌트

출처

Contest > Bergen Open > Bergen Open 2019 F번

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

출처

대학교 대회

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

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