文件名称:x

  • 所属分类:
  • 数学计算/工程计算
  • 资源属性:
  • [Text]
  • 上传时间:
  • 2013-12-10
  • 文件大小:
  • 1kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 徐**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

★问题描述:

给出平面上的N 个二维点,求出距离最小的2 个点对。本题中距离定义为他们的直

线距离。例如(0,0) (3,4)的距离为5.

★数据输入:

有多组数据,对于每组数据,第一行是一个数字N 表示点的个数。N=0 的时候说明

输入结束。之后N 行,每行有2 个浮点数x_i,y_i 表示第i 个点的坐标。(1<=N<=10000

0,0<=|x_i|,|y_i|<=10^9)

★结果输出:

输出一个浮点数,表示最近点对的距离除以2,保留2 位小数(四舍五入)。-★ Problem Descr iption:

Gives the N-dimensional point in the plane, find the minimum distance two points right. The problem is defined as the distance of their straight

Line distance. E.g., (0,0) (3,4) distance is 5.

★ Data input:

Multiple sets of data, for each set of data, the first line is a number N represents the number of points. Descr iption when N = 0

Enter the ending. After N lines, each line has two floating-point numbers x_i, y_i represents the i-th coordinate point. (1 <= N <= 10000

0,0 <= | x_i |, | y_i | <= 10 ^ 9)

★ resulting output:

Output a float that is the nearest point on the distance divided by 2, to retain two decimal places (rounded).
(系统自动生成,下载前可以参看下载内容)

下载文件列表





x.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org