当前位置:网站首页>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.
边栏推荐
猜你喜欢
flex布局回顾
IPQ4019/IPQ4029 support WiFi6 MiniPCIe Module 2T2R 2×2.4GHz 2x5GHz MT7915 MT7975
mysql数据查询因为查询的时间跨度过大导致cup爆满应该怎么办
dsu on tree(树上启发式合并)学习笔记
[C语言] sscanf如何实现sscanf_s?
初级软件测试工程师笔试试题,你知道答案吗?
如何通过 IDEA 数据库管理工具连接 TDengine?
JUC Concurrent Programming
框架外的PHP读取.env文件(php5.6、7.3可用版)
Notable NFT development trends in 2022
随机推荐
【wxGlade学习】wxGlade环境配置
装饰器模式:Swift 实现
Openlayers Aggregate Graph, Weight Aggregate Graph, and Aggregate Graph Click Events
UNITY gameobject代码中setacvtive(false)与面板中直接去掉勾 效果不一样
【TA-霜狼_may-《百人计划》】图形3.7.2 command buffer简
美术2.4 UV原理基础
法律顾问成了律所鸡肋产品了吗?
【Day_13 0509】▲跳石板
零基础SQL教程: 主键、外键和索引 04
One network cable to transfer files between two computers
Features of LoRa Chips
零基础SQL教程: 基础查询 05
WiFi cfg80211
opengauss创建用户权限问题
用 Antlr 重构脚本解释器
抽象类和接口
jenkins简单使用
链式编程注解
一根网线两台电脑传输文件
MySql事务