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

12084번 - Captain Hammer (Small) 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
5 초 512 MB2981004729.747%

문제

The Hamjet is a true marvel of aircraft engineering. It is a jet airplane with a single engine so powerful that it burns all of its fuel instantly during takeoff. The Hamjet doesn't have any wings because who needs them when the fuselage is made of a special Wonderflonium isotope that makes it impervious to harm.

Piloting the Hamjet is a not a job for your typical, meek-bodied superhero. That's why the Hamjet belongs to Captain Hammer, who is himself impervious to harm. The G-forces that the pilot endures when taking a trip in the Hamjet are legen-dary.

The Hamjet takes off at an angle of θ degrees up and a speed of V meters per second. Vis a fixed value that is determined by the awesome power of the Hamjet engine and the capacity of its fuel tank. The destination is D meters away. Your job is to program the Hamjet's computer to calculate θ given V and D.

Fortunately, the Hamjet's Wondeflonium hull is impervious to air friction. Even more fortunately, the Hamjet doesn't fly too far or too high, so you can assume that the Earth is flat, and that the acceleration due to gravity is a constant 9.8 m/s2 down.

입력

The first line of the input gives the number of test cases, T. T lines follow. Each line will contain two positive integers -- V and D.

Limits

  • 1 ≤ T ≤ 4500;
  • 1 ≤ V ≤ 300;
  • 1 ≤ D ≤ 10000;
  • It is guaranteed that each test case will be solvable.

출력

For each test case, output one line containing "Case #x: θ", where x is the case number (starting from 1) and θ is in degrees up from the the horizontal. If there are several possible answers, output the smallest positive one.

An answer will be considered correct if it is within 10-6 of the exact answer, in absolute or relative error. See the FAQ for an explanation of what that means, and what formats of floating-point numbers we accept.

제한

예제 입력 1

3
98 980
98 490
299 1234

예제 출력 1

Case #1: 45.0000000
Case #2: 15.0000000
Case #3: 3.8870928

힌트

출처

Contest > Google > Google's Coding Competitions > Google APAC 2016 University Graduates Test > Practice Round APAC test 2016 B1번

Contest > Google > Google's Coding Competitions > Google of Greater China Test for New Grads of 2014 > Practice Round China New Grad Test 2014 B1번

Contest > Google > Google's Coding Competitions > EuroPython 2013 > EuroPython 2013 B1번

Contest > Google > Kick Start > Google Kick Start 2015 > Practice Round B1번

Contest > Google > Kick Start > Google Kick Start 2013 > Practice Round B1번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

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

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