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

21167번 - Curve Speed 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB57230128154.247%

문제

To help with vehicle stability, the outer edge of a road in a curve is raised with respect to the inner edge. This is called superelevation and is specified as the difference in elevation divided by the width of the road. It needs to be higher for faster speeds and sharper curves.

The radius of a curve is the radius of the section of a circle along the middle of the road where the curve is constant. See Figure 1 for a drawing of this.

Figure 1: Section of a circle along the middle of a road with radius $R$.

In some cases the curve may need a lower speed limit than straight portions of the road. The superelevation shouldn't be more than about $.12$ to keep vehicles from sliding off the road in slippery conditions.

Your job is to calculate the maximum speed on a curve given the radius of the curve and the superelevation.

The maximum speed is given by this formula: $$V = \sqrt{(R*(S+.16))/.067},$$ where $V$ is the max speed in miles per hour, $R$ is the radius of the curve in feet, and S is the superelevation.

입력

The input is a series of lines terminated by end-of-file. Each line will be a test case consisting of $R$ and $S$ separated by whitespace. $R$ will be an integer greater than 99ドル$ and less than 5281ドル$ and $S$ will be a real number greater than $.009$ and less than 1ドル.0$. Neither will have leading zeros. There are at most 100ドル$ lines in input.

출력

For each test case output the maximum speed rounded to the nearest integer. It is guaranteed the answer before rounding will not be within 10ドル^{-3}$ of a half-integer value.

제한

예제 입력 1

1433 .09
1433 .12
2000 .09
600 .12

예제 출력 1

73
77
86
50

힌트

출처

ICPC > Regionals > North America > North Central North America Regional > NCNA 2020 E번

ICPC > Regionals > North America > Southern California Regional > 2020 Southern California Regional 3번

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

출처

대학교 대회

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

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