当前位置:网站首页>SDUT 2877: angry_birds_again_and_again
SDUT 2877: angry_birds_again_and_again
2022-08-11 08:43:00 【51CTO】
angry_birds_again_and_again
Time Limit: 2000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
The problems called "Angry Birds" and "Angry Birds Again and Again" has been solved by many teams in the series of contest in 2011 Multi-University Training Contest.
This time we focus on the yellow bird called Chuck. Chuck can pick up speed and distance when tapped.
You can assume that before tapped, Chuck flies along the parabola. When tapped, it changes to fly along the tangent line. The Chuck starts at the coordinates (0, 0). Now you are given the coordinates of the pig (Px, 0), the x-coordinate of the tapping position (Tx) and the initial flying angle of Chuck (α).
∠AOx = α
Please calculate the area surrounded by Chuck’s path and the ground.(The area surrounded by the solid line O-Tapping position-Pig-O)
输入
The first line contains only one integer T (T is about 1000) indicates the number of test cases. For each case there are two integers, px tx, and a float number α.(0 < Tx ≤ Px ≤ 1000, 0 < α <
) .
输出
One line for each case specifying the distance rounded to three digits.
示例输入
示例输出
提示
来源
2014年山东省第五届ACM大学生程序设计竞赛
迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……
题意:give two functions,Definite integral to find the area of a region.
边栏推荐
猜你喜欢
随机推荐
基于consul的注册发现的微服务架构迁移到servicemesh
UNITY gameobject代码中setacvtive(false)与面板中直接去掉勾 效果不一样
Linux,Redis中IOException: 远程主机强迫关闭了一个现有的连接。解决方法
笔试题大疆08.07
Essential C# scripting skills for Unity developers
进阶-指针
opengauss创建用户权限问题
@RequiredArgsConstructor注解
for循环和单击相应函数的执行顺序问题
基于 VIVADO 的 AM 调制解调(2)工程实现
万字长文带你了解多态的底层原理,这一篇就够了
2022-08-10:为了给刷题的同学一些奖励,力扣团队引入了一个弹簧游戏机, 游戏机由 N 个特殊弹簧排成一排,编号为 0 到 N-1, 初始有一个小球在编号 0 的弹簧处。若小球在编号为 i 的弹
基础SQL——DDL
mysql添加用户以及设置权限
pyqt5实现仪表盘
通过Xshell连接Vagrant创建的虚拟机
初级软件测试工程师笔试试题,你知道答案吗?
nodejs微服务中跨域,请求,接口,参数拦截等功能
Openlayers Aggregate Graph, Weight Aggregate Graph, and Aggregate Graph Click Events
4.1ROS运行管理/launch文件