#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) #define FOR(i, a, b) for(int i=(a);i<(b);i++) struct obj { int x, y, u; }; int N; vector os; int distance2(int i, int j) { return pow(os[i].x - os[j].x, 2) + pow(os[i].y - os[j].y, 2); } int root(int i) { if (os[i].u == i) return i; return os[i].u = root(os[i].u); } void join(int i, int j) { os[root(i)].u = os[root(j)].u; } double maxdis(int u) { double maxd = 0; vector ui; REP(i,N) if (root(i) == u) ui.push_back(i); // 面倒なので総当り REP(i,ui.size()) { FOR(j,i+1,ui.size()) { maxd = max(maxd, sqrt(distance2(i,j))); } } return maxd + 2; } signed main() { cin >> N; os.resize(N); REP(i,N) { cin >> os[i].x >> os[i].y; os[i].u = i; } // Union-Find木 REP(i,N) { FOR(j,i+1,N) { if (root(i) == root(j)) continue; if (distance2(i,j) <= 100) { join(i,j); } } } // それぞれの連結グラフについて最大距離を求める double maxd = (N > 0) ? 2.0 : 1.0; REP(i,N) { if (root(i) != i) continue; maxd = max(maxd, maxdis(i)); } printf("%.14f\n", maxd); return 0; }