求二维平面最近点对算法; 分治思想; 递归写的好精准,模仿ACM模板写的.;很多细节处理的很漂亮;
#include#include#include#includeconstintN=100005;constdoubleMAX=10e100,eps=0.00001;//mark!structPoint{doublex,y;intindex;};Pointa[N],b[N],c[N];doubleclosest(Point*,Point*,Point*,int,int);doubledis(Poi