当前位置:网站首页>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大学生程序设计竞赛
迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……
题意:给出两个函数,定积分求区域面积。
边栏推荐
猜你喜欢
One network cable to transfer files between two computers
机器学习(三)多项式回归
【TA-霜狼_may-《百人计划》】图形3.7.2 command buffer简
Features of LoRa Chips
Nuget can't find the package problem
C Primer Plus(6) 中文版 第1章 初识C语言 1.7 使用C语言的7个步骤
Mysql JSON对象和JSON数组查询
Unity3D - modification of the Inspector panel of the custom class
Redis 只会用缓存?20种妙用让同事直呼牛X(荣耀典藏版)
The easiest trick to support quick renaming of various files
随机推荐
golang 字符串操作
gRPC系列(二) 如何用Protobuf组织内容
Kali penetration test environment set up
【实战系列】OpenApi设计规范
Hibernate 的 Session 缓存相关操作
kali渗透测试环境搭建
麒麟V10系统打包Qt免安装包程序
如何通过 IDEA 数据库管理工具连接 TDengine?
nodejs微服务中跨域,请求,接口,参数拦截等功能
eureka和consul的区别
mysql数据查询因为查询的时间跨度过大导致cup爆满应该怎么办
法律顾问成了律所鸡肋产品了吗?
设置Vagrant创建的虚拟机名称和内存
小程序组件不能修改ui组件样式
CIKM 2022 AnalytiCup Competition: Federal Heterogeneous Task Learning
VoLTE基础自学系列 | 3GPP规范解读之Rx接口(上集)
Kaldi语音识别工具编译问题记录(踩坑记录)
Machine Learning Summary (2)
Filesystem Hierarchy Standard
klayout--导出版图为gds文件