2017-12-09 15:24

Hot girl with cool car

  • path
  • as
  • instance
  • 游戏
  • each

Problem Description
Huahua is a beautiful girl. Since she is still single, you can imagine how many boys want to dating with her on Saint Valentine's Day! Huahua is a clever girl, she do know well how to pick a boy by the way she like.

Unlike other girls, Huahua have a special hobby, that she is a professional fan of automobile race game. Her interest ranging widely from real car racing such as Formula 1, Dakar Rally, Le Mans World Endurance Championship, even to virtual games ,for instance, Need for Speed. Just because of this, Huahua is extremely popular in boys' eyes. It is a universally truth that hot girl with powerful cool car, everybody becomes blood surge!

Now Huahua got an idea. You know in professional racing game, choose a most suitable path when steer is very important. It can even decide the result. Driver must know very well about the road condition, control car speed at the braking point before entering curve, and turn wheel immediately at the beginning of the curve. But when is the right time to turn? Which is the best path? Huahua rise this technical problem to you.

Suppose there is a racing track shown in Graph 1, and we are facing a regular curve. Huahua will tell you the road condition: w (Unit: Meter) stands for the track wide, r (Unit: Meter) for the turning radius (inside the track), and θ ( 0°< θ <=180°) for the the angle of the curve we discussing. Since larger turning radius can provide driver better control experience and gain more time, your task is to tell Huahua the largest turning radius driver can pick. The one who first slove this problem will become the lucky dog and able to dating with Huahua on Saint Valentine's Day!

Graph 1: Racing Track

There are multiple cases, please process to End of File.
For each case:
Three postive real number: r, w, θ, as described above.

For each case, you are required to calculate R ( Unit: Meter ), which is the largest turning radius driver can pick. Round to 3 after point.

Sample Input
30 70 90

Sample Output

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享