-
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
-
LGKT4
四阶龙格库塔法解一阶二元微分方程 应用于数值计算(Fourth-order Runge-Kutta method for solving a class of binary differential equations for numerical calculation)
- 2010-06-29 11:55:57下载
- 积分:1
-
shengbomoni
二维交错网格声波模拟(加PML边界条件)地震(Two-dimensional staggered grid acoustic simulation (plus PML boundary conditions) earthquake)
- 2012-07-04 17:20:11下载
- 积分:1
-
lbm2d
基于D2Q9模型的LBM程序,用于计算方腔驱动流,对应何亚玲《格子Boltzmann方法的理论及应用》一书的源码(LBM D2Q9 model-based program used to calculate the square cavity driven flow, which corresponds He Yaling " Lattice Boltzmann Method Theory and Applications," a source book)
- 2021-03-12 21:19:24下载
- 积分:1
-
readraw
读取raw文件,函数文件输出具体矩阵数值(Read raw files, functions, file output specific matrix values)
- 2020-06-29 12:00:02下载
- 积分:1
-
xb
说明: fluent中作液体蒸发相变的udf,非常专业,证明可行(fluent in the evaporation of liquid phase transition for udf, very professional, proved to be feasible)
- 2014-04-07 10:53:26下载
- 积分:1
-
computeAreaOfPolygon
计算多边形(凸凹)面积。
欢迎批评指正(Calculating polygon (convex and concave) area. Welcome criticism)
- 2008-04-24 20:38:30下载
- 积分:1
-
CFD
这是一个求解NACA0012翼型在不同马赫数与攻角下的流场的Fortran源代码。计算格式采用了原始AUSM、AUSMDV以及AUSM+格式。为了提高计算精度,使用了不同限制器的MUSCL插值。(This is a Fortran source code for solving the flow field around the NACA0012 airfoil at different Mach numbers and angles of attack. The scheme of AUSM, AUSMDV and AUSM+ are employed for this code. In order to improve the calculation accuracy, the MUSCL interpolation with various type limiter are used.)
- 2014-04-09 13:39:33下载
- 积分:1
-
VLM
涡格法进行无人机的设计,升力系数,阻力系数,力矩系数等等,美过圣母大学的设计辅助软件(VLM)
- 2010-11-26 21:10:51下载
- 积分:1
-
Cpp-openlb
格子boltzmann方法模拟2D圆柱绕流程序 C++程序d2Q9模型(Lattice boltzmann simulation program 2D flow around a cylinder model of C++ program d2Q9)
- 2021-04-02 14:19:07下载
- 积分:1