当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3933:New Liquid

题目描述
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.



Fig. 1


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 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).
输出解释
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.
输入样例
34 44 41
64 11 500
52 8 478
65 22 464
输出样例
53
70
62
69
提示
Note: Angle is measured in degrees, and speed is measured in cm/s. Gravity constant g is 9.8m/s2.

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-3933

最后修改于 2020-10-29T07:16:00+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 65536