21499_Paintba

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

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

Pro.ID

21499

Title

Paintball

Title链接

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

AC

3

Submit

4

Ratio

75.00%

时间&空间限制

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

    You are playing paintball on a 1000×1000 square field. A number of your opponents are on the field hiding behind trees at various positions. Each opponent can fire a paintball a certain distance in any direction. Can you cross the field without being hit by a paintball?

    输入

    Assume that the southwest corner of the field is at (0,0) and the northwest corner at (0,1000). The input consists of a line containing n ≤ 1000, the number of opponents. A line follows for each opponent, containing three real numbers: the (x,y) location of the opponent and its firing range. The opponent can hit you with a paintball if you ever pass within his firing range.

    You must enter the field somewhere between the southwest and northwest corner and must leave somewhere between the southeast and northeast corners.

    输出

    Description

    You are playing paintball on a 1000×1000 square field. A number of your opponents are on the field hiding behind trees at various positions. Each opponent can fire a paintball a certain distance in any direction. Can you cross the field without being hit by a paintball?

    Input

    Assume that the southwest corner of the field is at (0,0) and the northwest corner at (0,1000). The input consists of a line containing n ≤ 1000, the number of opponents. A line follows for each opponent, containing three real numbers: the (x,y) location of the opponent and its firing range. The opponent can hit you with a paintball if you ever pass within his firing range.

    You must enter the field somewhere between the southwest and northwest corner and must leave somewhere between the southeast and northeast corners.

    Output

    If you can complete the trip, output four real numbers with two digits after the decimal place, the coordinates at which you may enter and leave the field, separated by spaces. If you can enter and leave at several places, give the most northerly. If there is no such pair of positions, print the line:

    IMPOSSIBLE

    Sample Input

    3
    500 500 499
    0 0 999
    1000 1000 200

    Sample Output

    0.00 1000.00 1000.00 800.00

    Source

    样例输入

    3
    500 500 499
    0 0 999
    1000 1000 200

    样例输出

    0.00 1000.00 1000.00 800.00

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部