-
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
-
wn037
用蒙特卡洛模拟的方法计算美式期权的价格以及基本描述,实现了图像的加水印,去噪,加噪声等功能,包括最小二乘法、SVM、神经网络、1_k近邻法。( Monte Carlo simulation method of calculating the American option price and basic description, Realize image watermarking, de-noising, plus noise and other functions, Including the least squares method, the SVM, neural networks, 1 _k neighbor method.)
- 2017-04-05 19:56:22下载
- 积分:1
-
AcousticTool
这个是计算声传播的各种模型
包括简正波kraken波数积分scooter等模型
有很好的学习价值
(a system program for acoustic propagation calculation)
- 2010-06-20 10:52:26下载
- 积分:1
-
Ising
用Monte-Carlo方法解决二维Ising模型(Monte-Carlo method used to solve two-dimensional Ising model)
- 2008-12-30 11:19:17下载
- 积分:1
-
Source1
ivf Fortran 有限元计算 一端固支 另一端自由移动的二维梁结构的振动(calculate the 2D beam vibration based on Finite Element Method in Fortran)
- 2014-06-04 20:49:30下载
- 积分:1
-
Preamble-detection
可实现OFDM电力载波通信的前导序列检测,能进行连续多个前导检测(Can achieve OFDM power carrier communication leading sequence detection, can carry out a number of continuous preamble detection)
- 2017-03-01 09:59:37下载
- 积分:1
-
毕设程序
滚动轴承信号的保罗谱分析,hilbert Teager能量算子,信号平方,信号取绝对值等等方法求信号包络谱(hilbert transmission)
- 2018-10-26 18:33:28下载
- 积分:1
-
UDF
一些简单的UDF文件,实现流场中梯度和某一点压力的检测提取(Some UDF profiles)
- 2015-06-13 07:28:49下载
- 积分:1
-
3nodes
基于牛拉法的电力系统潮流计算,该程序是计算IEEE3节点的,采用matlab编程(Cattle Rafah-based power system load flow calculation, the program the calculation IEEE3 node, using matlab programming)
- 2020-12-17 21:29:12下载
- 积分:1
-
jiech
这是一个关于高精度阶乘的程序,测试可用!!!(This is a program on the high-precision factorial test available! ! !)
- 2012-09-27 07:35:40下载
- 积分:1