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

15279번 - Heart Rate 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB42437133188.978%

문제

A common method for determining your own heart rate is to place your index and third finger on your neck to the side of your windpipe. You then count how many beats you feel in a span of 15 seconds, multiply that number by four and that gives you a measure of your heart rate in beats per minute (BPM). This method gives a good estimate, but is not quite accurate. In general, if you measure b beats in p seconds the BPM is calculated as 60b/p.

For this problem, we assume that all heart rates are constant and do not change. If t is the amount of time (in seconds) between each beat of your heart, we define your Actual Beats Per Minute (ABPM) as 60/t.

입력

The input starts with an integer N (1 ≤ N ≤ 1000) indicating the number of cases to follow. Each of the next N lines specify one case, consisting of the integer b (2 ≤ b ≤ 1000) as well as p (0 < p < 1000) as described above. The value of p is a real number specified to 4 decimal places.

출력

For each case, print on a single line the minimum possible ABPM, the calculated BPM, and the maximum possible ABPM, separated by a space. Your answer will be considered correct if its absolute or relative error does not exceed 10−4.

제한

예제 입력 1

2
6 5.0000
2 3.1222

예제 출력 1

60.0000 72.0000 84.0000
19.2172 38.4344 57.6517

힌트

출처

ICPC > Regionals > North America > Rocky Mountain Regional > 2017 Rocky Mountain Regional Contest H번

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

출처

대학교 대회

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

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