|
||||||||||
Hot girl with cool carTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 367 Accepted Submission(s): 157 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! 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
Sample Output
Author oldsharp Source | ||||||||||
|