编程介的小学生 2017-09-04 11:03 采纳率: 20.5%
浏览 752
已采纳

Hot girl with cool car

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

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

Output
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
268.995

  • 写回答

1条回答

  • threenewbee 2017-09-18 02:43
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 arduino控制ps2手柄一直报错
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥85 maple软件,solve求反函数,出现rootof怎么办?
  • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿