#include using namespace std; struct UnionFind { vector< int > par; UnionFind(int n = 1) { init(n); } void init(int n = 1) { par.resize(n); for(int i = 0; i < n; i++) par[i] = -1; } int root(int n) { if (par[n] < 0) return n; return par[n] = root(par[n]); } bool merge(int x, int y) { x = root(x); y = root(y); if (x == y) return false; if (par[x] > par[y]) swap(x, y); par[x] += par[y]; par[y] = x; return true; } bool issame(int x, int y) { return root(x) == root(y); } }; int main() { int n; cin >> n; vector< int64_t > x(n), y(n); for (int i=0; i> x[i] >> y[i]; vector< vector< int64_t > > d(n, vector< int64_t >(n, 0)); for (int i=0; i 1LL) { int64_t mid = (ok+ng)/2; (check(mid) ? ok : ng) = mid; } int64_t ans = ok * 10LL; cout << ans << endl; return 0; }