21950_SkiJumping

2022-5-16 18:20| 发布者: Hocassian| 查看: 22| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-4-89505985832300-Problem List-采集的数据-后羿采集器.html

Pro.ID

21950

Title

Ski Jumping

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21950

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 16000/8000 MS (Java/Others)     Memory Limit: 131072/65536 K (Java/Others)
  • 描述

    Ski jumping is one of the most popular winter sport competitions. In the chase of records, ski jumping hills become larger and larger. To ensure the safety of the competitors, landing speed and angle must not exceed critical margins defined by the FIS. Today, it's your task to assess these values for a newly constructed ski jumping arena shown in the figure.

    Instead of doing measurements in the field, you can use a little math to solve your problem, since the hill has the following shape:

    where l is the position on the x-axis with its origin in the beginning of the hill. H is the height and L is the width of the hill; j is the maximum starting height of the ski-jump and p is the height difference between the end of the (ski-jump) approach and the top of the hill. Assuming that friction plays no important role and since the critical margins are defined for a flight without any influence of wind, you may utilize the following flight curve:

    where v0 is the speed gained in the approach. You can obtain this value from the law of energy conservation. Potential and kinetic energy are defined as follows:

    In all equations, g is the gravitational constant (g ~= 9.81ms-2).

    输入

    Input starts with the number of test cases t on a single line (0 < t < 160,000).

    Every test case consists of a single line containing four positive integers j, p, H, and L as defined in the problem statement (0 < j, p, H, L ≤ 500). The unit of all values is meter.

    输出

    Description

    Ski jumping is one of the most popular winter sport competitions. In the chase of records, ski jumping hills become larger and larger. To ensure the safety of the competitors, landing speed and angle must not exceed critical margins defined by the FIS. Today, it's your task to assess these values for a newly constructed ski jumping arena shown in the figure.

    Instead of doing measurements in the field, you can use a little math to solve your problem, since the hill has the following shape:

    where l is the position on the x-axis with its origin in the beginning of the hill. H is the height and L is the width of the hill; j is the maximum starting height of the ski-jump and p is the height difference between the end of the (ski-jump) approach and the top of the hill. Assuming that friction plays no important role and since the critical margins are defined for a flight without any influence of wind, you may utilize the following flight curve:

    where v0 is the speed gained in the approach. You can obtain this value from the law of energy conservation. Potential and kinetic energy are defined as follows:

    In all equations, g is the gravitational constant (g ~= 9.81ms-2).

    Input

    Input starts with the number of test cases t on a single line (0 < t < 160,000).

    Every test case consists of a single line containing four positive integers j, p, H, and L as defined in the problem statement (0 < j, p, H, L ≤ 500). The unit of all values is meter.

    Output

    For every test case, print one line containing

    • the landing position l on the x-axis,

    • the landing speed |vl| of the jumper (in meters per second), and

    • the speed-angle alpha (in degree) with respect to the hill (see the figure).

    The values must be separated by a single blank. An absolute or relative error of 10-4 is tolerated.

    Sample Input

    3
    50 5 10 100
    50 5 30 100
    50 5 50 100

    Sample Output

    40.82482905 33.83045965 12.93315449
    81.04978134 40.31656580 26.21334827
    104.8808848 45.38832449 46.36470132

    Hint

    The inner product of two vectors a and b is de ned as:

    Source

    样例输入

    3
    50 5 10 100
    50 5 30 100
    50 5 50 100

    样例输出

    40.82482905 33.83045965 12.93315449
    81.04978134 40.31656580 26.21334827
    104.8808848 45.38832449 46.36470132

    提示

    The inner product of two vectors a and b is de ned as:

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部