|
||||||||||
Fruit BowlTime Limit: 50000/20000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 85 Accepted Submission(s): 6 Problem Description For her next project, Beebe Flat wishes to paint a bowl of fruit.Naturally, the bowl is two-dimensional, as is all of the fruit. She bought a triangular bowl which somehow always manages to stay upright, with a perfectly level top. The bowl has a height H, and opens A degrees to the left and B degrees to the right (see diagram). chooses bowls such that, when properly packed, the last piece of fruit to fit will be at least 10-2 below the top, and the next piece of fruit that would fit if the bowl were taller will jut out at least 10-2 above the top.Given a particular bowl, how many pieces of fruit does Beebe need to buy to fill the bowl in this manner? Input The input consists of multiple test cases. Each test case has three integers on a single line, denoting A, B,and H. 1 <= A,B <= 45, A 6= B, and 1 <= H <= 300. The last test case will be followed by A = B = H = 0,which should not be processed. Output For each test case, print on a single line the number of pieces of fruit that Beebe needs to buy to fill the given bowl. Sample Input
Sample Output
Source | ||||||||||
|