{"problem":{"name":"Longest Segment","description":{"content":"There are $N$ points in a two-dimensional plane. The coordinates of the $i$\\-th point are $(x_i,y_i)$. Find the maximum length of a segment connecting two of these points.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc234_b"},"statements":[{"statement_type":"Markdown","content":"There are $N$ points in a two-dimensional plane. The coordinates of the $i$\\-th point are $(x_i,y_i)$.\nFind the maximum length of a segment connecting two of these points.\n\n## Constraints\n\n*   $2 \\leq N \\leq 100$\n*   $-1000 \\leq x_i,y_i \\leq 1000$\n*   $(x_i,y_i) \\neq (x_j,y_j)\\ (i \\neq j)$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n$x_1$ $y_1$\n$x_2$ $y_2$\n$\\hspace{0.4cm} \\vdots$\n$x_N$ $y_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc234_b","tags":[],"sample_group":[["3\n0 0\n0 1\n1 1","1.4142135624\n\nFor the $1$\\-st and $3$\\-rd points, the length of the segment connecting them is $\\sqrt 2 = 1.41421356237\\dots$, which is the maximum length."],["5\n315 271\n-2 -621\n-205 -511\n-952 482\n165 463","1455.7159750446"]],"created_at":"2026-03-03 11:01:14"}}