当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
mysql添加用户以及设置权限
兼容并蓄广纳百川,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang复合容器类型的声明和使用EP04
idea 方法注释:自定义修改method的return和params,void不显示
Getting Started with Kotlin Algorithms Calculating Prime Numbers and Optimization
持续集成/持续部署(2)Jenkins & SonarQube
为什么会没有内存了呢
Creo9.0 特征的成组
基于 VIVADO 的 AM 调制解调(2)工程实现
8、Mip-NeRF
Swagger简单使用
IDEA的初步使用
Nuget找不到包的问题处理
Rust从入门到精通06-函数
@RequiredArgsConstructor注解
一根网线两台电脑传输文件
《价值》读书与投资
企业服务器主机加固现状分析
进阶-指针
Mysql JSON对象和JSON数组查询
优炫数据库支持多列分区吗?