21330_NewHorizons

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

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

Pro.ID

21330

Title

New Horizons

Title链接

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

AC

0

Submit

0

Ratio

-

时间&空间限制

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

    Yertle has determined that the number of objects he can see, and hence rule, depends on the height of his throne. Your task, as Minister of Computing and Vertigo (a new combined Super Ministry), is to determine which objects Yertle would see should he build his throne to a particular height.

    输入

    • A floating point number on a line by itself, specifying the diameter of Yertle’s planet in "flipper lengths".
    • A line containing three floating point numbers: the height of Yertle’s throne (in flipper lengths), the latitude of Yertle’s throne (between -90 and +90 degrees), the longitude of Yertle’s throne (between 0 and 360 degrees).
    • Several lines, each containing three floating point numbers and a string of alphabetic and space characters. Each line indicates the height, latitude, longitude and name of an object on the surface of Yertle’s planet. The last line is indicated by the end of standard input.
    All distances are in flipper lengths, and all latitudes and longitudes are in degrees. Floating point values are formatted as a string of decimal digits with an optional decimal point and sign. The fields in the input are separated by exactly one space character. You may assume that no object hides another; only the horizon limits Yertle’s view.

    输出

    Description
    Yertle has determined that the number of objects he can see, and hence rule, depends on the height of his throne. Your task, as Minister of Computing and Vertigo (a new combined Super Ministry), is to determine which objects Yertle would see should he build his throne to a particular height.
    Input
    • A floating point number on a line by itself, specifying the diameter of Yertle’s planet in "flipper lengths".
    • A line containing three floating point numbers: the height of Yertle’s throne (in flipper lengths), the latitude of Yertle’s throne (between -90 and +90 degrees), the longitude of Yertle’s throne (between 0 and 360 degrees).
    • Several lines, each containing three floating point numbers and a string of alphabetic and space characters. Each line indicates the height, latitude, longitude and name of an object on the surface of Yertle’s planet. The last line is indicated by the end of standard input.
    All distances are in flipper lengths, and all latitudes and longitudes are in degrees. Floating point values are formatted as a string of decimal digits with an optional decimal point and sign. The fields in the input are separated by exactly one space character. You may assume that no object hides another; only the horizon limits Yertle’s view.
    Output
    The list of objects whose tops are visible to Yertle, in alphabetical order.
    Sample Input
    20000.0
    100.0 45.0 100.0
    2.0 46.0 99.0 Cat
    20.0 -45.0 260.0 House
    5.0 45.1 100.2 Blueberry Bush
    Sample Output
    Blueberry Bush
    Cat
    Source

    样例输入

    20000.0
    100.0 45.0 100.0
    2.0 46.0 99.0 Cat
    20.0 -45.0 260.0 House
    5.0 45.1 100.2 Blueberry Bush

    样例输出

    Blueberry Bush
    Cat

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部