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.

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

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

0

1个回答

0

New Liquid
DescriptionnnProfessor 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. nnnn![](http://poj.org/images/3933_1.png)nFig. 1nnnThe container is large and deep enough, so the ball will never hit the side of the container or get out of the liquid. nInputnnInput 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). nOutputnnFor each test case, output a single line containing an integer θ: the best angle. Don’t make the answers too accurate, integers are good enough. nSample Inputnn34 44 41n64 11 500n52 8 478n65 22 464nSample Outputnn53n70n62n69
DotLiquid模板引擎简介
DotLiquid是一个灵活性很高并且依赖很少的模板引擎，虽然没有Razor流行，但大量的单元测试保证它可以经得起实际的使用。
Liquid UI和移动端开发ABAP简介
【博主SAP/ABAP交流群689746838】 这篇文章介绍一下一个第三方公司的产品，Liquid UI。因为我也不是了解太多，只能做个简单的介绍，有兴趣的可以去他们官网：guixt.com，了解更多的信息。 Liquid UI，主要就是一个针对SAP ERP的辅助工具，侧重两点，界面优化和移动端解决方案。   界面优化主要是指通过Liquid的Add on功能，调整SAP ERP的...

liquid用法笔记

Liquid Volume
unity Liquid Volume液体容器插件下载，5.0以上可使用。
Liquid Physics 2D.unitypackage Unity3D2D 流水插件
Liquid Physics 2D It's an easy to use tool that allows you to create advanced physics based games and simulations within the Unity engine. It can simulate tens of thousands of particles in real time to create realistic fluid effects.
Blockstream第一个比特币侧链Liquid上线

Liquid学习笔记
Liquid中有2种Markups: Output Hello {{ title }} Tag 非文本 {\% 对称的大括号加百分号 \%} 输出Output 简单的输出如 Hello 另外输出还可以使用过滤器 Filter，如: Hello TOBI Hello tobi has 4 letters! Helo 2013 May 标准过滤器 Sta...
C4D不错的溶化动画预设Solid To Liquid Tool V1.5
C4D软件一个不错的C4D不错的溶化动画预设Solid To Liquid Tool V1.5
Avid_Liquid.7.2 XP win764（bit）汉化
Avid_Liquid.7.2 XP win764（bit）汉化，这可是自己的原创，百费心思才汉化成功的
XML常用的工具_LiquidXMLStudio映射XML到C++代码
LiquidXMLStudio映射XML到C++代码

LiquidCrystal_I2C

JVM - 1. Java虚拟机梗概，那些你不知道的VM

Flyway、Liquidbase这类数据库迁移工具

Liquid Crystal Display 液晶显示技术

unity3d粒子特效 Liquid Particle Systems
unity3d粒子特效 Liquid Particle Systems 1.2.01下载。
RealFlow在线教程翻译（11）——SPH - Particles (Liquid) （液体粒子）
RealFlow在线教程翻译（11）——SPH - Particles (Liquid) （液体粒子）

2D液体物理引擎 -- LiquidFun

XSD图形化编辑Liquid XMLStudio part1
XSD图形化编辑Liquid XMLStudio XSD图形化编辑Liquid XMLStudio XSD图形化编辑Liquid XMLStudioXSD图形化编辑Liquid XMLStudio XSD图形化编辑Liquid XMLStudio XSD图形化编辑Liquid XMLStudio
【转】Unity Physics2D学习总结
1、在操作附加了Rigidbody2D的物体时，不要直接通过操作Transform来移动、旋转它。 2、要接受碰撞的Rigidbody2D必须添加Collider2D组件。 3、如果一个Rigidbody2D需要移动，但不接受力的作用，那么需要将它设置成Kinematic；如果它附加了Collider2D组件，在Rigidbody的Use Full Kinematic Contacts属性为fal...
SOA运行环境利器——BEA虚拟化应用介绍
LiquidVM是BEA与VMWare合作的产物。相比传统OS上的APPServer，提供了更为灵活和易于管理和分布计算的高效虚拟Java runtime环境。基本体系结构如下   WLS是BEA的应用服务器，实际上是WLS－VE版本LVM核心是三层结构，包含了一个微型的Linux kernel，提供基本的OS服务，上图可以看到硬件虚拟层之上就是LVM。一个标准的JVM，使用的是BEA自己...
Liquid Physics 2D 1.6.unitypackage
unity 流体插件 unity 流体插件 unity 流体插件 unity 流体插件 unity 流体插件
ECharts Liquid Fill Chart-5-背景、文字、边框设置
1、代码// ECharts 水球图插件，需要额外插件脚本，参见上方“脚本” // 完整配置参数参见：https://github.com/ecomfe/echarts-liquidfill //两种方式的formatter var option = { series: [{ type: 'liquidFill', name: 'series...
16-Django的模板语言（变量，标签，过滤器，继承，html转义）

2-Face Viewable Liquid Crystal Display by In-Plane Switching

Liquid.Studio2018 XMLtoXSD

Arduino库文件LiquidCrystal的实用方法
LiquidCrystal()——定义你的LCD的接口：各个引脚连接的I/O口编号，格式为LiquidCrystal(rs, enable, d4, d5, d6, d7)  LiquidCrystal(rs, rw, enable, d4, d5, d6, d7)  LiquidCrystal(rs, enable, d0, d1, d2, d3, d4, d5, d6, d7)  Liq
Fundamentals of Liquid Crystal Devices

Viscometry for Liquid
Avid_Liquid.7.2 Win7-64光驱解决方案
Avid_Liquid.7.2 Win7-64光驱解决方案

Acer Android Liquid刷机教程
Acer Android Liquid 刷机 教程 适用Acer A1(S100) S120 等Liquid版本的机型
Flash liquid 布局源码
Flash liquid 布局源码，可以很清晰了解Flash Liquid Site的布局和功能
Avid Liquid 7.2 keygen
Avid Liquid 7.2 keygen