{"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\"\u003e你能让一叠卡片悬出桌子多远?如果你只有一张卡片,最多能让它悬出半张卡片的长度。(我们假设卡片必须垂直于桌子。)有两张卡片时,你可以让上面的卡片悬出下面一张卡片的一半长度,而下面的卡片悬出桌子的长度为一张卡片的三分之一,总共最多能悬出 1/2 + 1/3 \u003d 5/6 张卡片的长度。一般情况下,n张卡片能悬出的长度为 1/2 + 1/3 + 1/4 + ... + 1/(n + 1) 张卡片的长度,其中上面的卡片悬出第二张卡片 1/2,第二张悬出第三张 1/3,第三张悬出第四张 1/4,依此类推,最下面的卡片悬出桌子 1/(n + 1)。如下图所示。\u003cbr\u003e\u003cbr\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/7f7b6da801bc77e5e80b1e48b4455ce3?v\u003d1707130883\"\u003e \u003cbr\u003e\u003cbr\u003e输入包含一个或多个测试用例,以包含数字 0.00 的一行作为输入结束的信号。每个测试用例是一行,包含一个正的浮点数 c,其值至少为 0.01,最多为 5.20;c 将恰好包含三位数字。\u003cbr\u003e\u003cbr\u003e对于每个测试用例,输出至少需要多少张卡片才能悬出至少 c 张卡片的长度。输出格式应与示例中的格式完全一致。\u003cbr\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cpre\u003e1.00\r\n3.71\r\n0.04\r\n5.19\r\n0.00\r\n\u003c/pre\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cpre\u003e3 card(s)\r\n61 card(s)\r\n1 card(s)\r\n273 card(s)\r\n\u003c/pre\u003e"}},{"title":"示例","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.00\r\n3.71\r\n0.04\r\n5.19\r\n0.00\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3 card(s)\r\n61 card(s)\r\n1 card(s)\r\n273 card(s)\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}