HDU 2529 Shot (物理数学题)

题目

解题过程:

//物理数学题
#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;

int main()
{
    double h,l,v,ans;
    while(scanf("%lf%lf%lf",&h,&l,&v)!=EOF)
    {
        if(h==0&&l==0&&v==0)break;
        ans = h + v * v / 19.6 - 4.9 * l * l / v / v;
        printf("%.2lf\n",ans);
    }
    return 0;
}

HDU 2529 Shot (物理数学题)

时间: 2024-10-05 16:11:07

HDU 2529 Shot (物理数学题)的相关文章

HDU - 2529 - Shot

Shot Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 845    Accepted Submission(s): 502 Problem Description "超人"霍华德在NBA扣篮大赛上要求把篮筐升高表演扣篮,但是却没有得到批准,现在我们的hhb也想要给大家表演一个,但是这次他想要表演的是投篮,篮筐放得越高,hh

hdu 3123 GCC(数学题)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3123 GCC Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 3808    Accepted Submission(s): 1234 Problem Description The GNU Compiler Collection (u

[BestCoder Round #5] hdu 4956 Poor Hanamichi (数学题)

Poor Hanamichi Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 743    Accepted Submission(s): 275 Problem Description Hanamichi is taking part in a programming contest, and he is assigned to so

Bungee Jumping hdu 1155(物理)

http://acm.hdu.edu.cn/showproblem.php?pid=1155 题意:给出一个人蹦极的高度,绳子的长度,绳子的弹力系数,以及他自身体重.问你他是停留在空中还是安全落地还是速度过大撞死了(V>10). 分析:一年不学物理,物理真成渣了.不过百度看的解析,公式好熟悉啊... mgh=k*x*x/2+m*v*v/2(x为形变量) #include <iostream> #include <stdio.h> #include <string.h&g

HDU 4989 Summary(数学题暴力)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4989 Problem Description Small W is playing a summary game. Firstly, He takes N numbers. Secondly he takes out every pair of them and add this two numbers, thus he can get N*(N - 1)/2 new numbers. Thirdl

hdu 4950 Monster(数学题,多校8)

题目链接:pid=4950http://acm.hdu.edu.cn/showproblem.php?pid=4950">http://acm.hdu.edu.cn/showproblem.php?pid=4950 Monster Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 220    Accepted Submission

hdu 1491 Octorber 21st(数学题)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1491 Problem Description HDU's 50th birthday, on Octorber 21st, is coming. What an exciting day!! As a student of HDU, I always want to know how many days are there between today and Octorber 21st.So, wr

HDU 1418 抱歉(数学题)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1418 Problem Description 非常抱歉,本来兴冲冲地搞一场练习赛,由于我准备不足,出现很多数据的错误,现在这里换一个简单的题目: 前几天在网上查找ACM资料的时候,看到一个中学的奥数题目,就是不相交的曲线段分割平面的问题,我已经发到论坛,并且lxj 已经得到一个结论,这里就不 多讲了,下面有一个类似的并且更简单的问题: 如果平面上有n个点,并且每个点至少有2条曲线段和它相连,就是说,

HDU 5003 Osu!(数学题)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5003 Problem Description Osu! is a famous music game that attracts a lot of people. In osu!, there is a performance scoring system, which evaluates your performance. Each song you have played will have a