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

24772번 - Ornaments 다국어

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

문제

A factory is making ornaments for the upcoming holidays. Ornaments consist of a 2D glass sphere (i.e., a circle) that is designed to hang off a hook or nail using a string that tightly wraps around the ornament, as shown in the figure to the right.

Your task is to write a program that calculates the length of the string, given the radius r of the circle, the distance h from the knot to the center of the circle, and some multiplier to account for the excess needed to tie the knot.

입력

The input will contain multiple test cases. Each test case contains on a single line three integer numbers r (1 ≤ r ≤ 1000), h (r ≤ h ≤ 10000), and s (0 ≤ s ≤ 100). s denotes the necessary excess string in %. The percentage is relative to what would be needed without accounting for the knot, so if s = 25, you should increment the necessary length by 1/4.

The input will be terminated by a line containing 3 zeros.

출력

For each test case, output the length of the needed string, rounded to two decimals.

제한

예제 입력 1

1 3 10
2 5 8
10 11 0
0 0 0

예제 출력 1

10.43
18.46
63.40

힌트

출처

School > Virginia Tech High School Programming Contest > 2014 Virginia Tech High School Programming Contest H번

  • 문제를 만든 사람: Godmar Back
(追記) (追記ここまで)

출처

대학교 대회

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

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