-
5
说明:
★问题描述:
给出平面上的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 位小数(四舍五入)。
- 2013-12-03 14:57:02下载
- 积分:1
-
daoxianzhaoxing-ansys
这是一段导线找形的命令流,可用于ansys有限元分析(This is a piece of wire to find the form of order flow, can be used for finite element analysis ansys)
- 2021-04-20 16:38:50下载
- 积分:1
-
Desktop
主要用于三次样条拟合,对离散点进行拟合插值,(Three order spline fitting)
- 2018-05-25 17:27:38下载
- 积分:1
-
usub-TEE-ECM
弹性补偿法的程序,在abaqus中进行二次开发,可以计算各种结构的极限载荷。(The elastic compensation method of the procedure, carries on two times of developments in ABAQUS, can be used to calculate the limit load of various structures.
)
- 2013-08-27 21:49:31下载
- 积分:1
-
0-1
说明: 用LINGO求解最短路径问题,此方法为0-1规划,只适用于简单的ILP问题。(Lingo is used to solve the shortest path problem, which is a 0-1 programming method. It is only suitable for simple ILP problems.)
- 2020-05-04 08:21:21下载
- 积分:1
-
Lagrange
使用拉格朗日乘子法解约束优化问题,例子是最优化问题,有3个线性约束(Using the Lagrange multiplier method to solve the constrained optimization problem)
- 2018-04-06 15:42:47下载
- 积分:1
-
my_double
用于计算太阳辐射的模型,该模型计算精度好,方法简单(Used to calculate the solar radiation model, the model accuracy, the method is simple)
- 2021-05-06 17:22:07下载
- 积分:1
-
ART
电容层析成像的ART算法演示实例,并带有详细的说明(An Example of ART Algorithm for Electrical Capacitance Tomography)
- 2021-04-22 08:48:49下载
- 积分:1
-
sin_fft
自己编写的一个正弦函数频谱的估计,利用FFT函数实现,有详细注释,方便理解,附带仿真图一张(A sine function spectrum estimate their preparation, the use of FFT function implementation, detailed notes, easy to understand, with a simulation map)
- 2014-11-04 09:45:07下载
- 积分:1
-
files
说明: 二分法算法文件,龙格库塔法,高斯法,数值计算二分法求解,适用于初学数值计算人群(Dichotomy algorithm file)
- 2020-04-20 20:10:55下载
- 积分:1