当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
零基础SQL教程: 主键、外键和索引 04
Kotlin算法入门兔子数量优化及拓展
迷你图书馆系统(对象+数组)
通过Xshell连接Vagrant创建的虚拟机
机器学习(一)数据的预处理
OAuth Client默认配置加载
对比学习系列(三)-----SimCLR
观察表情和面部,会发现他有焦虑和失眠的痕迹
万字长文带你了解多态的底层原理,这一篇就够了
go sqlx 包
进阶-指针
excel 透视表 值显示内容 不显示计数
Initial use of IDEA
Kotlin算法入门求回文数数算法优化二数字生成规则
一根网线两台电脑传输文件
pycharm中绘图,显示不了figure窗口的问题
nodejs微服务中跨域,请求,接口,参数拦截等功能
gRPC系列(二) 如何用Protobuf组织内容
opengauss创建用户权限问题
流式结构化数据计算语言的进化与新选择








