{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e漂移是一种驾驶方式,驾驶者通过使用油门、刹车、离合器、换挡和转向输入,使汽车在转弯时保持转向过度状态。作为一项运动,漂移于上世纪 80 年代末首次在日本兴起,随后十年间风靡全球。\u003c/p\u003e\n\u003cp\u003e土屋圭市是日本车手,有 \"漂移王 \"之称。他在普及漂移艺术方面发挥了重要作用。这位先驱激励了许多成功的车手。他曾在电影 \u003cspan class\u003d\"tex-font-style-bf\"\u003e速度与激情:东京漂移\u003c/span\u003e 他经常受雇于各种电影拍摄现场,担任车手和特技协调人。土屋圭一在漂移方面的天赋尤其体现在他的大绝技--终极漂移上。\u003c/p\u003e\n\u003cp\u003e他可以这样做。他驾驶的漂移车形状像一个长方形盒子,宽度为 $$$a$$$ 英寸,长度为 $$$b$$$ 英寸。他在一个内部边界为半径为 $$$r$$$ 英寸的圆周上的 $$$d$$$ 度弧线的曲线上右转。作为一名技术娴熟的驾驶员,他会保持汽车在内部边界的接触和相切。也就是说,汽车右前角应始终沿着内部边界行驶,车身方向应始终与内部边界相切。\u003c/p\u003e\n\u003ccenter\u003e\n \u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/6fccf63982a214f29af64271364d47e7?v\u003d1697343092\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\n\u003c/center\u003e\n\u003cp\u003e我们已经测量过,弯道前后的直线距离足够长,而且车道的宽度是不变的。正如我们在实际生活中遇到的情况一样,如果车道的宽度是固定的,那么车道一侧的每一点到另一侧最近点的距离正好是车道的宽度。现在要求您计算车道的最小宽度 $$$w$$$,以便漂移王在整个弯道行驶时不会漂出车道。\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"输入包含多个测试用例,第一行包含一个正整数 $T$ ,表示测试用例的数量,最多为 $10^4$ 。\n\n对于每个测试用例,只有一行包含四个整数 $a$ 、 $b$ 、 $r$ 和 $d$ ,其中 $0 \u0026lt; a, b, r \u0026lt; 100$ 和 $0 \u0026lt; d \u0026lt; 180$ 。"}},{"title":"Output","value":{"format":"HTML","content":"对于每个测试案例,输出一行包含绝对或相对误差不超过 $10^{-6}$ 的最小车道宽度(以英寸为单位)。准确地说,假设你的答案是 $a$ ,陪审团的答案是 $b$ ,那么如果 $\\frac{|a - b|}{\\max\\{1, |b|\\}} \\leq 10^{-6}$ ,你的答案将被认为是正确的。"}},{"title":"Sample 1","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\u003e4\n1 2 2 120\n1 2 2 60\n1 2 2 30\n1 2 2 15\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1.605551275464\n1.605551275464\n1.598076211353\n1.415415569072\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}