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: New Liquid
Description Professor W invents a new kind of liquid. The damping of that liquid is high and the density of it is low. To test whether the liquid is qualified, Professor W wants to do an experiment. He pours the liquid into a container, of which the bottom slopes up in an angle of α。Prof. W places a ball at the lower end of the bottom, and launches it at a speed of V cm per second. Once the ball touches the bottom, it stops immediately. Fig.1 shows the experiment in the container. When the ball is moving in the liquid, the liquid applies an acceleration of - fV to the ball(f is a constant). Because the density of the liquid is very low, you can ignore the buoyancy(The upward force of a liquid is called buoyancy). Now it is the problem: how to choose the launch angle θ (with horizon), to make the ball go as far as possible (ie. the distance between the start point and the stop point as large as possible)? You should help Professor W solve this problem.
The container is large and deep enough, so the ball will never hit the side of the container or get out of the liquid. Input Input consists of T (1 <= T <= 20) test cases. Each test case is one line including three integers: α for slope angle, V for ball speed and f for the constant. (0 <= α < 90, 0 < V < 50, 0 < f < 1000).
Output For each test case, output a single line containing an integer θ: the best angle. Don’t make the answers too accurate, integers are good enough.
Sample Input 34 44 41 64 11 500 52 8 478 65 22 464 Sample Output 53 70 62 69 Hint Note: Angle is measured in degrees, and speed is measured in cm/s. Gravity constant g is 9.8m/s2. Source |
[Submit] [Go Back] [Status] [Discuss]
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator