The 36th ACM/ICPC Asia Regional Dalian Site —— Online Contest hdu4007
#include#include#include#include#includeusingnamespacestd;structpoint{ intx,y;}a[1005];boolcmp(pointa,pointb){ returna.xq; inttemp; for(inti=0;i=a[i].y&&a[j].yq.front().x+m) { q.pop()