题号:NC225353
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
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

for a drawing of this.
Figure

: Section of a circle along the middle of a road with radius

.
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

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:
)%2F.067%7D)
,
where

is the max speed in miles per hour,

is the radius of the curve in feet, and

is the superelevation.
输入描述:
The input is a series of lines terminated by end-of-file. Each line will be a test case consisting of
and
separatedby whitespace.
will be an integer greater than
and less than
and
will be a real number greater than
and less than
. Neither will have leading zeros. There are at most
lines in input.
输出描述:
For each test case output the maximum speed rounded to the nearest integer. It is guaranteed the answer beforerounding will not be within
of a half-integer value.
示例1
输入
复制
1433 .09
1433 .12
2000 .09
600 .12