21999_Aerodynamics

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

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

Pro.ID

21999

Title

Aerodynamics

Title链接

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

AC

0

Submit

8

Ratio

0.00%

时间&空间限制

  • Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    Bill is working in a secret laboratory. He is developing missiles for national security projects. Bill is the head of the aerodynamics department.

    One surprising fact of aerodynamics is called Whitcomb area rule. An object flying at high-subsonic

    speeds develops local supersonic airflows and the resulting shock waves create the e ect called wave drag. Wave drag does not depend on the exact form of the object, but rather on its cross-sectional pro le.

    Consider a coordinate system with OZ axis pointing in the direction of object's motion. Denote the area of a section of the object by a plane z = z0 as S(z0). Cross-sectional profile of the object is a function S that maps z0 to S(z0). There is a perfect aerodynamic shape called Sears-Haack body. The closer cross-sectional pro le of an object to the cross-sectional pro le of Sears-Haack body, the less wave drag it introduces. That is an essence of Whitcomb area rule.

    Bill's department makes a lot of computer simulations to study missile's aerodynamic properties before it is even built. To approximate missile's cross-sectional pro le one takes samples of S(z0) for integer arguments z0 from zmin to zmax.

    Your task is to find the area S(z0) for each integer z0 from zmin to zmax, inclusive, given the description of the missile. The description of the missile is given to you as a set of points. The missile is the minimal convex solid containing all the given points. It is guaranteed that there are four points that do not belong to the same plane.

    输入

    The first line of the input file contains three integer numbers: n, zmin and zmax ( 4 ≤ n ≤ 100, 0 ≤ zminzmax ≤ 100 ). The following n lines contain three integer numbers each: x, y, and z co-ordinates of the given points. All coordinates do not exceed 100 by their absolute values. No two points coincide. There are four points that do not belong to the same plane.

    输出

    Description

    Bill is working in a secret laboratory. He is developing missiles for national security projects. Bill is the head of the aerodynamics department.

    One surprising fact of aerodynamics is called Whitcomb area rule. An object flying at high-subsonic

    speeds develops local supersonic airflows and the resulting shock waves create the e ect called wave drag. Wave drag does not depend on the exact form of the object, but rather on its cross-sectional pro le.

    Consider a coordinate system with OZ axis pointing in the direction of object's motion. Denote the area of a section of the object by a plane z = z0 as S(z0). Cross-sectional profile of the object is a function S that maps z0 to S(z0). There is a perfect aerodynamic shape called Sears-Haack body. The closer cross-sectional pro le of an object to the cross-sectional pro le of Sears-Haack body, the less wave drag it introduces. That is an essence of Whitcomb area rule.

    Bill's department makes a lot of computer simulations to study missile's aerodynamic properties before it is even built. To approximate missile's cross-sectional pro le one takes samples of S(z0) for integer arguments z0 from zmin to zmax.

    Your task is to find the area S(z0) for each integer z0 from zmin to zmax, inclusive, given the description of the missile. The description of the missile is given to you as a set of points. The missile is the minimal convex solid containing all the given points. It is guaranteed that there are four points that do not belong to the same plane.

    Input

    The first line of the input file contains three integer numbers: n, zmin and zmax ( 4 ≤ n ≤ 100, 0 ≤ zminzmax ≤ 100 ). The following n lines contain three integer numbers each: x, y, and z co-ordinates of the given points. All coordinates do not exceed 100 by their absolute values. No two points coincide. There are four points that do not belong to the same plane.

    Output

    For each integer z0 from zmin to zmax, inclusive, output one floating point number: the area S(z0). The area must be precise to at least 5 digits after decimal point.

    Sample Input

    9 0 5
    0 0 5
    -3 0 2
    0 -1 2
    3 0 2
    0 1 2
    2 2 0
    2 -2 0
    -2 -2 0
    -2 2 0

    Sample Output

    16.00000
    14.92000
    10.08000
    4.48000
    1.12000
    0.00000

    Source

    样例输入

    9 0 5
    0 0 5
    -3 0 2
    0 -1 2
    3 0 2
    0 1 2
    2 2 0
    2 -2 0
    -2 -2 0
    -2 2 0

    样例输出

    16.00000
    14.92000
    10.08000
    4.48000
    1.12000
    0.00000

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部