#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; vector x(n),y(n); for(Int i=0;i>x[i]>>y[i]; auto dist= [&](Int a,Int b){ Int v=(x[a]-x[b])*(x[a]-x[b])+(y[a]-y[b])*(y[a]-y[b]); Int d=(Int)sqrtl(v)/10*10; while((d-10)*(d-10)>=v) d-=10; while(d*d dp(n,INF),used(n,0); dp[0]=0; for(Int t=0;tdp[i]) v=i; } if(v<0) break; used[v]=1; for(Int i=0;i