当前位置:网站首页>SDUT 2877:angry_birds_again_and_again
SDUT 2877:angry_birds_again_and_again
2022-08-11 08:35: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大学生程序设计竞赛
迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……
题意:给出两个函数,定积分求区域面积。
边栏推荐
- LoRa芯片的特征
- string类接口介绍及应用
- VoLTE基础自学系列 | 3GPP规范解读之Rx接口(上集)
- Filesystem Hierarchy Standard
- 4.1ROS运行管理/launch文件
- 2022-08-10:为了给刷题的同学一些奖励,力扣团队引入了一个弹簧游戏机, 游戏机由 N 个特殊弹簧排成一排,编号为 0 到 N-1, 初始有一个小球在编号 0 的弹簧处。若小球在编号为 i 的弹
- 2022年值得关注的NFT发展趋势
- 为什么会没有内存了呢
- leetcode: 69. Square root of x
- ImportError: /usr/local/cuda-11.2/lib64/libcublas.so.10: version `libcublas.so.10‘ not found
猜你喜欢

shell之sed

租房小程序

leetcode: 69. Square root of x

go-grpc TSL authentication solution transport: authentication handshake failed: x509 certificate relies on ... ...

Active users of mobile banking grew rapidly in June, hitting a half-year high

JUC Concurrent Programming

通过Xshell连接Vagrant创建的虚拟机

flex布局回顾

excel 透视表 值显示内容 不显示计数

笔试题大疆08.07
随机推荐
快速幂,逆元的求解
《剑指offer》题解——week3(持续更新)
对比学习系列(三)-----SimCLR
Nuget找不到包的问题处理
Initial use of IDEA
C Primer Plus(6) 中文版 第1章 初识C语言 1.7 使用C语言的7个步骤
C Primer Plus(6) 中文版 第1章 初识C语言 1.1 C语言的起源 1.2 选择C语言的理由 1.3 C语言的应用范围
Unity3D - modification of the Inspector panel of the custom class
Kotlin算法入门求自由落体
mysql添加用户以及设置权限
excel将数据按某一列值分组并绘制分组折线图
One network cable to transfer files between two computers
记录一些遇见的bug——Lombok和Mapstruct的冲突导致,A component required a bean of type ‘com.XXX.controller.converter.
抽象类和接口
FPGA 20个例程篇:11.USB2.0接收并回复CRC16位校验
租房小程序
go-grpc TSL authentication solution transport: authentication handshake failed: x509 certificate relies on ... ...
DataGrip配置OceanBase
Openlayers 聚合图、权重聚合图以及聚合图点击事件
装饰器模式:Swift 实现