#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 l=0,r=2e8; while(l+1>1; if(m*m*100>=v) r=m; else l=m; } return r*10; }; const Int INF = 1e15; vector 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