-
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
-
random_function
create random function -
- 2017-09-28 16:54:47下载
- 积分:1
-
Source1
输出三维数据可供tecplot软件读取的二进制文件(Output data for three-dimensional software to read the binary file tecplot)
- 2021-05-06 22:28:36下载
- 积分:1
-
matlab有限元分析与应用
使用matlab进行 有限元计算,内含多种方式方法,欢迎交流讨论(Finite element calculation using matlab)
- 2020-06-21 03:20:01下载
- 积分:1
-
mengmou
基于多相结构的信道化接收机,模拟数据分析处理的过程,时间序列数据分析中的梅林变换工具。( Channelized receiver based on multi-phase structure, Analog data analysis processing, Time series data analysis Mellin transform tool.)
- 2017-04-09 13:17:14下载
- 积分:1
-
fftbianhuan
test1.txt 第一列为时间t,0.001s为步长;第二列为系统的输入信号;第三列为系统的输出信号。
signal_analyzer.m首先将test1.txt 的数据读入workspace,然后进行FFT,分析出两信号的频率,输出对于输入的幅值衰减(db),输出对输入的相位差。(test1.txt the first time as t, 0.001s for the step the second as the system input signal the third as the system output signal. signal_analyzer.m first test1.txt data read workspace, and then proceed to FFT, analysis of the two signals in the frequency, the output for input amplitude attenuation (db), the output of the input phase difference.)
- 2008-12-13 02:19:50下载
- 积分:1
-
Euler_solver
基于有限体积法的naca0012翼型的无粘绕流计算(Calculation of airfoils based on the finite volume method naca0012 inviscid flow around)
- 2012-06-26 18:34:18下载
- 积分:1
-
vof
计算多项流的好程序,简单好用,计算量小。可以较好的模拟二维的两项变化情况(Calculating a number of streams of the program, easy to use, small amount of calculation. Can better simulate the two-dimensional variation)
- 2020-12-01 11:39:27下载
- 积分:1
-
hq600
小波包分析提取振动信号中的特征频率,微分方程组数值解方法,有循环检测,周期性检测。( Wavelet packet analysis to extract vibration signal characteristic frequency, Numerical solution of differential equations method, There are cycle detection, periodic testing.)
- 2017-03-24 14:23:03下载
- 积分:1
-
3D-KE
三维后台阶流动再附着过程的K-E湍流计算程序,采用SIMPLE算法+壁面函数(Calculation procedures of K-E turbulent flow for three-dimensional backward-facing step flow reattachment process, using SIMPLE algorithm+ wall function)
- 2011-09-26 17:25:29下载
- 积分:1