{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e\n\t\u003cp\u003e\r\nThere are \u003cb\u003eN\u003c/b\u003e points marked on a surface, pair (\u003cb\u003ex\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e, \u003cb\u003ey\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e) is coordinates of a point number \u003cb\u003ei\u003c/b\u003e.\r\nLet\u0027s call a \u003ci\u003enecklace\u003c/i\u003e a set of \u003cb\u003eN\u003c/b\u003e figures which fulfils the following rules.\r\n\r\n\u003c/p\u003e\u003cp\u003e\r\n\u003c/p\u003e\u003cul\u003e\r\n\u003cli\u003eThe figure \u003cb\u003e#i\u003c/b\u003e consists of all such points (\u003cb\u003ex\u003c/b\u003e, \u003cb\u003ey\u003c/b\u003e) that (\u003cb\u003ex\u003c/b\u003e - \u003cb\u003ex\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e)\u003ci\u003e\u003csup\u003e2\u003c/sup\u003e\u003c/i\u003e + (\u003cb\u003ey\u003c/b\u003e - \u003cb\u003ey\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e)\u003ci\u003e\u003csup\u003e2\u003c/sup\u003e\u003c/i\u003e ≤ \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e\u003ci\u003e\u003csup\u003e2\u003c/sup\u003e\u003c/i\u003e, where \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e ≥ \u003ci\u003e0\u003c/i\u003e.\r\n\u003c/li\u003e\u003cli\u003eFigures \u003cb\u003e#i\u003c/b\u003e and \u003cb\u003e#(i+1)\u003c/b\u003e intersect (\u003ci\u003e1\u003c/i\u003e ≤ \u003cb\u003ei\u003c/b\u003e \u0026lt; \u003cb\u003eN\u003c/b\u003e).\r\n\u003c/li\u003e\u003cli\u003eFigures \u003ci\u003e#1\u003c/i\u003e and \u003cb\u003e#N\u003c/b\u003e intersect.\r\n\u003c/li\u003e\u003cli\u003eAll the rest pairs of figures do not intersect.\r\n\u003c/li\u003e\u003c/ul\u003e\r\n\r\n\u003cp\u003e\r\nWrite a program which takes points and constructs a necklace.\r\n\r\n\u003c/p\u003e\u003ch3\u003eInput\u003c/h3\u003e\r\n\u003cp\u003e\r\nFirst line of input contains an integer \u003cb\u003et\u003c/b\u003e (\u003ci\u003e1\u003c/i\u003e ≤ \u003cb\u003et\u003c/b\u003e ≤ \u003ci\u003e45\u003c/i\u003e), equals to the number of testcases. Then descriptions of \u003cb\u003et\u003c/b\u003e\r\ntestcases follow.\r\n\r\n\u003c/p\u003e\u003cp\u003e\r\nThe first line of the description contains one integer number \u003cb\u003eN\u003c/b\u003e (\u003ci\u003e2\u003c/i\u003e ≤ \u003cb\u003eN\u003c/b\u003e ≤ \u003ci\u003e100\u003c/i\u003e).\r\nEach of the next \u003cb\u003eN\u003c/b\u003e lines contains two real numbers \u003cb\u003ex\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e, \u003cb\u003ey\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e (\u003ci\u003e-1000\u003c/i\u003e ≤ \u003cb\u003ex\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e, \u003cb\u003ey\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e ≤ \u003ci\u003e1000\u003c/i\u003e), separated by one space. It is guaranteed that at least one necklace exists for each testcase.\r\n\r\n\u003c/p\u003e\u003ch3\u003eOutput\u003c/h3\u003e\r\n\u003cp\u003e\r\nFor each testcase your program should output exactly \u003cb\u003eN\u003c/b\u003e lines. A line \u003cb\u003e#i\u003c/b\u003e should contain real number \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e (\u003ci\u003e0\u003c/i\u003e ≤ \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e \u0026lt; \u003ci\u003e10000\u003c/i\u003e).\r\nTo avoid potential accuracy problems, a checking program uses the following rules.\r\n\r\n\u003c/p\u003e\u003cp\u003e\r\n\u003c/p\u003e\u003cul\u003e\r\n\u003cli\u003eFigures \u003cb\u003e#i\u003c/b\u003e and \u003cb\u003e#j\u003c/b\u003e definitely do not intersect if \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e + \u003cb\u003er\u003csub\u003ej\u003c/sub\u003e\u003c/b\u003e ≤ \u003cb\u003ed\u003csub\u003eij\u003c/sub\u003e\u003c/b\u003e - \u003ci\u003e10\u003csup\u003e-5\u003c/sup\u003e\u003c/i\u003e. \r\n\u003c/li\u003e\u003cli\u003eFigures \u003cb\u003e#i\u003c/b\u003e and \u003cb\u003e#j\u003c/b\u003e definitely intersect if \u003cb\u003ed\u003csub\u003eij\u003c/sub\u003e\u003c/b\u003e + \u003ci\u003e10\u003csup\u003e-5\u003c/sup\u003e\u003c/i\u003e ≤ \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e + \u003cb\u003er\u003csub\u003ej\u003c/sub\u003e\u003c/b\u003e.\r\n\u003c/li\u003e\u003cli\u003eThe case when \u003cb\u003ed\u003csub\u003eij\u003c/sub\u003e\u003c/b\u003e - \u003ci\u003e10\u003csup\u003e-5\u003c/sup\u003e\u003c/i\u003e \u0026lt; \u003cb\u003er\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e + \u003cb\u003er\u003csub\u003ej\u003c/sub\u003e\u003c/b\u003e \u0026lt; \u003cb\u003ed\u003csub\u003eij\u003c/sub\u003e\u003c/b\u003e + \u003ci\u003e10\u003csup\u003e-5\u003c/sup\u003e\u003c/i\u003e is decided in favour of a contestant.\r\n\u003c/li\u003e\u003cli\u003e\u003cb\u003ed\u003csub\u003eij\u003c/sub\u003e\u003c/b\u003e equals \u003ci\u003esqrt\u003c/i\u003e((\u003cb\u003ex\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e - \u003cb\u003ex\u003csub\u003ej\u003c/sub\u003e\u003c/b\u003e)\u003ci\u003e\u003csup\u003e2\u003c/sup\u003e\u003c/i\u003e + (\u003cb\u003ey\u003csub\u003ei\u003c/sub\u003e\u003c/b\u003e - \u003cb\u003ey\u003csub\u003ej\u003c/sub\u003e\u003c/b\u003e)\u003ci\u003e\u003csup\u003e2\u003c/sup\u003e\u003c/i\u003e) in the rules above.\r\n\u003c/li\u003e\u003c/ul\u003e\r\n\r\n\u003ch3\u003eExample\u003c/h3\u003e\r\n\r\n\u003cdiv\u003e\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n4\r\n0 0\r\n10 0\r\n10 10\r\n0 10\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e7\r\n7\r\n7\r\n7\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e\r\n\n\u003c/div\u003e"}}]}