{"trustable":false,"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":"题意:给你n+1辆汽车,每辆汽车有汽车的长度L,汽车距离终点的距离S,汽车的最大速度V。\n\n汽车与汽车之间距离为0时,速度大的汽车的速度会等于速度小的汽车的速度\n\n求离终点最远的那辆车的车头到达终点的时间\n\n注意,当汽车驶过终点线后会继续行驶,相遇,对后面的车也会造成影响"}},{"title":"Input","value":{"format":"HTML","content":"题目包含多个测试用例。\n每个测试用例首先输入n,代表车子的数量,n\u003c\u003d1e5。\n接下来每行输入三个数Li,Si,Vi,分别代表第i辆汽车的长度,距离终点的距离和最大速度。其中1\u003c\u003dLi,Si,Vi\u003c\u003d1e9"}},{"title":"Output","value":{"format":"HTML","content":"对于每个测试用例,输入末尾的车到达终点的时间。"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1\n2 2\n7 1\n2 1\n2\n1 2 2\n10 7 1\n6 2 1\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e3.5000000000\n5.0000000000\u003c/pre\u003e"}}]}