Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Model Rocket Height
Description One method used to determine the height achieved by a model rocket is the geodesic method. Two observers On each sight line, find the point on that sight line closest to the other sight line. The point halfway between these two points is assumed to be the location of the rocket at the top of its flight. The height achieved by the rocket is the vertical distance of this point above the launch platform. This problem is to write a program which, given the parameters Input The first line of input contains the number of shots that follow Output For each set of four angles (other than the end indicator), the output contains a line with the shot number, (1... Sample Input 4 5.25 2.92 39.6 36.0 35.4 151.2 65.1 71.2 16.5 160.6 59.4 59.5 43.8 139.0 45.0 41.2 32.9 152.6 Sample Output 1: 50 2: 135 3: 119 4: 58 Source |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator