当前位置:网站首页>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大学生程序设计竞赛
迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……
题意:给出两个函数,定积分求区域面积。
边栏推荐
- Kotlin算法入门计算水仙花数
- Analysis of the Status Quo of Enterprise Server Host Reinforcement
- 【系统梳理】当我们在说服务治理的时候,其实我们说的是什么?
- Kotlin算法入门求自由落体
- Unity3D——自定义类的Inspector面板的修改
- excel将数据按某一列值分组并绘制分组折线图
- 法律顾问成了律所鸡肋产品了吗?
- leetcode: 69. Square root of x
- 装饰器模式:Swift 实现
- Break pad source code compilation--refer to the summary of the big blogger
猜你喜欢

Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!

mysql数据查询因为查询的时间跨度过大导致cup爆满应该怎么办

Mysql JSON对象和JSON数组查询

软件测试常用工具的用途及优缺点比较(详细)

2022 China Soft Drink Market Insights

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

万字长文带你了解多态的底层原理,这一篇就够了

LoRa芯片的特征

框架外的PHP读取.env文件(php5.6、7.3可用版)

FPGA 20个例程篇:11.USB2.0接收并回复CRC16位校验
随机推荐
C Primer Plus(6) 中文版 第1章 初识C语言 1.7 使用C语言的7个步骤
js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)
jenkins 流水线脚本详细解析Pipeline
支持各种文件快速重命名最简单的小技巧
Kali penetration test environment set up
ASP.NET Core 6框架揭秘实例演示[32]:错误页面的集中呈现方式
Getting Started with Kotlin Algorithm to Calculate the Number of Daffodils
流式结构化数据计算语言的进化与新选择
一根网线两台电脑传输文件
轻量级网络(一):MobileNet V1,V2, V3系列
为什么会没有内存了呢
磁盘管理:磁盘结构
pycharm中绘图,显示不了figure窗口的问题
WiFi cfg80211
dsu on tree(树上启发式合并)学习笔记
matplotlib
基于C#通过PLCSIM ADV仿真软件实现与西门子1500PLC的S7通信方法演示
初级软件测试工程师笔试试题,你知道答案吗?
【43. 字符串相乘】
DataGrip配置OceanBase