#include #include #include class bod{ public: double x,y; bod(){} bod(double x,double y):x(x),y(y){} }; bod* p; double e=1e-5; bool operator<(bod a,bod b){ if(a.xb.x) return 0; return a.y>n; if(n==0) break; p=new bod[n]; //double x,y; for(int i=0;i>p[i].x>>p[i].y; } double xx=0,yy=0; for(int i=0;ie || fabs(y-int (y+e))>e || lower_bound(p,p+n,bod(int (x+e),int (y+e)))==p+n){ bod* b=lower_bound(p,p+n,bod(x,y)); // bod* b=lower_bound(p,p+n,bod(int (x+e),int (y+e))); if(b==p+n || b==NULL || fabs(b->x- x)>e || fabs(b->y- y)>e ){ //cout<