【HDU 2298】Toxophily

传送门

题目描述

The recreation center of WHU ACM Team has indoor billiards, Ping Pang, chess and bridge, toxophily, deluxe ballrooms KTV rooms, fishing, climbing, and so on.
We all like toxophily.

Bob is hooked on toxophily recently. Assume that Bob is at point (0,0) and he wants to shoot the fruits on a nearby tree. He can adjust the angle to fix the trajectory. Unfortunately, he always fails at that. Can you help him?

Now given the object's coordinates, please calculate the angle between the arrow and x-axis at Bob's point. Assume that g=9.8N/m. 

题目翻译

现在,你在坐标原点,在(x,y)处有一个水果,你以初速度为v射出一箭。请问,你以多大的角度射出才能击中水果,如果能击中,输出角度,否则输出-1。

猜你喜欢

转载自www.cnblogs.com/Fang-Hao/p/9090191.html
hdu
今日推荐