题意不难理解,就是找到最近的两个点,计算其距离,除以2就是所求的圆的半径...
思路很简单,运用分治的思想,先划分区间,分别找到左右区间中的最近点对,再合并区间,找到区间间的最近点对...
注意如果用qsort()进行排序可能会超时...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
using namespace std;
int N,top;
struct node
{
double x,y;
}point[100005],stack[100005];
int cmpx(struct node a,str