21792_Buriedmemory

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

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

Pro.ID

21792

Title

Buried memory

Title链接

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

AC

10

Submit

17

Ratio

58.82%

时间&空间限制

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

    Each person had do something foolish along with his or her growth. But, when he or she did this that time, they could not predict that this thing is a mistake and they will want this thing would rather not happened.

    The world king Sconbin is not the exception. One day, Sconbin was sleeping, then swakened by one nightmare. It turned out that his love letters to Dufein were made public in his dream. These foolish letters might ruin his throne. Sconbin decided to destroy the letters by the military exercises's opportunity. The missile is the best weapon. Considered the execution of the missile, Sconbin chose to use one missile with the minimum destruction.

    Sconbin had writen N letters to Dufein, she buried these letters on different places. Sconbin got the places by difficult, he wants to know where is the best place launch the missile, and the smallest radius of the burst area. Let's help Sconbin to get the award.

    输入

    There are many test cases. Each case consists of a positive integer N ( N < 500, ^V^, our great king might be a considerate lover ) on a line followed by N lines giving the coordinates of N letters. Each coordinates have two numbers, x coordinate and y coordinate. N=0 is the end of the input file.

    输出

    Description

    Each person had do something foolish along with his or her growth. But, when he or she did this that time, they could not predict that this thing is a mistake and they will want this thing would rather not happened.

    The world king Sconbin is not the exception. One day, Sconbin was sleeping, then swakened by one nightmare. It turned out that his love letters to Dufein were made public in his dream. These foolish letters might ruin his throne. Sconbin decided to destroy the letters by the military exercises's opportunity. The missile is the best weapon. Considered the execution of the missile, Sconbin chose to use one missile with the minimum destruction.

    Sconbin had writen N letters to Dufein, she buried these letters on different places. Sconbin got the places by difficult, he wants to know where is the best place launch the missile, and the smallest radius of the burst area. Let's help Sconbin to get the award.

    Input

    There are many test cases. Each case consists of a positive integer N ( N < 500, ^V^, our great king might be a considerate lover ) on a line followed by N lines giving the coordinates of N letters. Each coordinates have two numbers, x coordinate and y coordinate. N=0 is the end of the input file.

    Output

    For each case, there should be a single line in the output, containing three numbers, the first and second are x and y coordinates of the missile to launch, the third is the smallest radius the missile need to destroy all N letters. All output numbers are rounded to the second digit after the decimal point.

    Sample Input

    3
    1.00 1.00
    2.00 2.00
    3.00 3.00
    0

    Sample Output

    2.00 2.00 1.41

    Source

    样例输入

    3
    1.00 1.00
    2.00 2.00
    3.00 3.00
    0

    样例输出

    2.00 2.00 1.41

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部