题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4631
#include<bits/stdc++.h>
using namespace std;
#define debug puts("YES");
#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)
#define ll long long
#define lrt int l,int r,int rt
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define root l,r,rt
const int maxn =1e5+5;
const int mod=1e9+7;
const int ub=10000;
ll powmod(ll x,ll y){ll t; for(t=1;y;y>>=1,x=x*x%mod) if(y&1) t=t*x%mod; return t;}
ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*
二维点附加动态查询点之间最小距离,
最后输出所有动态最小距离之和。
想了好久实在没办法了就暴力吧。。。(20秒。。。)
因为题目意思中有最小的限制,
就剪个枝吧,只要把之前的点丢到个动态排序的结构中就可以了。
选择set吧,然后对于当前x坐标,查询点距离在x-sqrt(minv),x+sqrt(minv)之间的二维点,
更新答案并且计数吧。
*/
ll n,a1,b1,c1,a2,b2,c2,x,y