{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eEric is playing a game on an infinite plane. \u003cbr\u003e\u003cbr\u003eOn the plane, there is a circular area with radius $r_1$ called $\\textbf{the Scoring Area}$. Every time Eric will throw a square card with side length $a$ into the plane, then the card will start rotating around its centre. If at one moment the card is strictly inside $\\textbf{the Scoring Area}$, the current play will be scored.\u003cbr\u003e\u003cbr\u003eThere is another circular area with radius $r_2$ called $\\textbf{the Bonus Area}$. If the play is scored in the current situation, the square card will continue rotating and if at one moment it is strictly inside $\\textbf{the Bonus Area}$, he will get an extra bonus.\u003cbr\u003e\u003cbr\u003eEric isn\u0027t good at this game, so we can briefly consider that he will throw the card to any postion with an equal probability. \u003cbr\u003e\u003cbr\u003eNow Eric wants to know what the ratio of the possibility of being scored and getting the bonus simultaneously to the possibility of being scored is. \u003cbr\u003e\u003cbr\u003eThe coordinates of the centre of $\\textbf{the Scoring Area}$ are $(x_1,y_1)$.\u003cbr\u003eThe coordinates of the centre of $\\textbf{the Bonus Area}$ are $(x_2,y_2)$.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line contains a number $T$($ 1 \\leq T \\leq 20$), the number of testcases.\u003cbr\u003e\u003cbr\u003eFor each testcase, there are three lines.\u003cbr\u003eIn the first line there are three integers $r_1$,$x_1$,$y_1$($-1000 \\leq x_1,y_1 \\leq 1000,0\u0026lt;r_1 \\leq 1000$), the radius and the postion of $\\textbf{the Scoring Area}$.\u003cbr\u003eIn the second line there are three integers $r_2$,$x_2$,$y_2$($-1000 \\leq x_2,y_2 \\leq 1000,0\u0026lt;r_2 \\leq 1000$), the radius and the postion of $\\textbf{the Bonus Area}$.\u003cbr\u003eIn the third line there is an integer $a$($0\u0026lt;a \\leq 1000$), the side length of the square card.\u003cbr\u003e\u003cbr\u003e$\\textbf{It is guaranteed that the Scoring Area is big enough thus there is always a chance for the play to be scored}$."}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output a decimal $p$($0 \\leq p \\leq 1$) in one line, the ratio of the possibility of being scored and getting the bonus simultaneously to the possibility of being scored.\u003cbr\u003e\u003cbr\u003e$\\textbf{Your answer should be rounded to 6 digits after the decimal point.}$\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\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\n5 1 2\r\n3 2 1\r\n1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0.301720\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}