当前位置:网站首页>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大学生程序设计竞赛
迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……
题意:给出两个函数,定积分求区域面积。
边栏推荐
猜你喜欢

向日葵安装教程--向日葵远程桌面控制

Hibernate 的 Session 缓存相关操作

IQUNIX A80 exploring TTC金粉 初体验

笔试题大疆08.07

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

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

磁盘管理:磁盘结构

C Primer Plus(6) 中文版 第1章 初识C语言 1.7 使用C语言的7个步骤

FPGA 20个例程篇:11.USB2.0接收并回复CRC16位校验

dsu on tree(树上启发式合并)学习笔记
随机推荐
Openlayers Aggregate Graph, Weight Aggregate Graph, and Aggregate Graph Click Events
【43. 字符串相乘】
for循环和单击相应函数的执行顺序问题
Interview questions about Android Service
Keep track of your monthly income and expenses through bookkeeping
C语言操作符详解
【系统梳理】当我们在说服务治理的时候,其实我们说的是什么?
如何仅更改 QGroupBox 标题的字体?
[UEFI]EFI_DEVICE_PATH_PROTOCOL 结构体初始化的一个例子
通过Xshell连接Vagrant创建的虚拟机
flex布局回顾
借问变量何处存,牧童笑称用指针,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang类型指针(Pointer)的使用EP05
Getting Started with Kotlin Algorithms Calculating Prime Numbers and Optimization
pycharm中绘图,显示不了figure窗口的问题
少年成就黑客,需要这些技能
idea 方法注释:自定义修改method的return和params,void不显示
klayout--导出版图为gds文件
装饰器模式:Swift 实现
DataGrip配置OceanBase
Kali penetration test environment set up