当前位置:网站首页>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大学生程序设计竞赛
迷失在幽谷中的鸟儿,独自飞翔在这偌大的天地间,却不知自己该飞往何方……
题意:给出两个函数,定积分求区域面积。
边栏推荐
猜你喜欢
![ASP.NET Core 6框架揭秘实例演示[32]:错误页面的集中呈现方式](/img/c9/93ab353c4908adaaae0da2cc3b6a3c.png)
ASP.NET Core 6框架揭秘实例演示[32]:错误页面的集中呈现方式

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

Nuget can't find the package problem

零基础SQL教程: 基础查询 05

Alibaba Sentinel - Slot chain解析

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

研发了 5 年的时序数据库,到底要解决什么问题?

查询跟踪快递单号物流,智能分析物流中转有延误的单号

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

2022-08-10:为了给刷题的同学一些奖励,力扣团队引入了一个弹簧游戏机, 游戏机由 N 个特殊弹簧排成一排,编号为 0 到 N-1, 初始有一个小球在编号 0 的弹簧处。若小球在编号为 i 的弹
随机推荐
高德能力API
leetcode: 69. Square root of x
装饰器模式:Swift 实现
2021-08-11 For loop combined with multi-threaded asynchronous query and collect results
Swagger简单使用
如何仅更改 QGroupBox 标题的字体?
idea 方法注释:自定义修改method的return和params,void不显示
少年成就黑客,需要这些技能
Interview questions about Android Service
基于consul的注册发现的微服务架构迁移到servicemesh
基础SQL——DDL
《剑指offer》题解——week3(持续更新)
Getting Started with Kotlin Algorithm to Calculate the Number of Daffodils
CIKM 2022 AnalytiCup Competition: Federal Heterogeneous Task Learning
IDEA的初步使用
Openlayers Aggregate Graph, Weight Aggregate Graph, and Aggregate Graph Click Events
数据库无法启动,报无法分配内存,怎么处理
ImportError: /usr/local/cuda-11.2/lib64/libcublas.so.10: version `libcublas.so.10‘ not found
欧拉函数(用欧拉筛法求欧拉函数)
DataGrip配置OceanBase