{"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":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\n\u003cp\u003eOne day a highly important task was commissioned to Vasya — writing a program in a night. The program consists of \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e lines of code. Vasya is already exhausted, so he works like that: first he writes \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ev\u003c/i\u003e\u003c/span\u003e lines of code, drinks a cup of tea, then he writes as much as \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/ddc187e3f86a910469e91dcfcfd43c63?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e lines, drinks another cup of tea, then he writes \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/074e82df120cfbcadbbc893323a7df2f?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e lines and so on: \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/f0c8aa3eec6e478bdbe81d64989e4dc8?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e, \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/fe3affcdc5686ffef2803422daab8568?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e, \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/af80e4281cffab1e2d76e2fc39d1fe93?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e, ...\u003c/p\u003e\n\u003cp\u003eThe expression \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/31dbe8b814fbddf4f1e04f20290e2203?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e is regarded as the integral part from dividing number \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e by number \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003eb\u003c/i\u003e\u003c/span\u003e.\u003c/p\u003e\n\u003cp\u003eThe moment the current value \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" SRC\u003d\"CDN_BASE_URL/3878065a548292b39dc1dd3fae09dd03?v\u003d1552216250\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e equals 0, Vasya immediately falls asleep and he wakes up only in the morning, when the program should already be finished.\u003c/p\u003e\n\u003cp\u003eVasya is wondering, what minimum allowable value \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ev\u003c/i\u003e\u003c/span\u003e can take to let him write \u003cspan class\u003d\"tex-font-style-bf\"\u003enot less\u003c/span\u003e than \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e lines of code before he falls asleep.\u003c/p\u003e\n题目:有n的任务需要完成,初始进度是v, 第一次加v/k , 第二次加 v/(k*k), 第三次加 v/(k*k*k), 求 完成进度的最小v"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe input consists of two integers \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ek\u003c/i\u003e\u003c/span\u003e, separated by spaces — the size of the program in lines and the productivity reduction coefficient, \u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 10\u003csup class\u003d\"upper-index\"\u003e9\u003c/sup\u003e\u003c/span\u003e, \u003cspan class\u003d\"tex-span\"\u003e2 ≤ \u003ci\u003ek\u003c/i\u003e ≤ 10\u003c/span\u003e.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003ePrint the only integer — the minimum value of \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ev\u003c/i\u003e\u003c/span\u003e that lets Vasya write the program in one night.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e7 2\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e4\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e59 9\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e54\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first sample the answer is \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ev\u003c/i\u003e \u003d 4\u003c/span\u003e. Vasya writes the code in the following portions: first \u003cspan class\u003d\"tex-span\"\u003e4\u003c/span\u003e lines, then \u003cspan class\u003d\"tex-span\"\u003e2\u003c/span\u003e, then \u003cspan class\u003d\"tex-span\"\u003e1\u003c/span\u003e, and then Vasya falls asleep. Thus, he manages to write \u003cspan class\u003d\"tex-span\"\u003e4 + 2 + 1 \u003d 7\u003c/span\u003e lines in a night and complete the task.\u003c/p\u003e\n\u003cp\u003eIn the second sample the answer is \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ev\u003c/i\u003e \u003d 54\u003c/span\u003e. Vasya writes the code in the following portions: \u003cspan class\u003d\"tex-span\"\u003e54\u003c/span\u003e, \u003cspan class\u003d\"tex-span\"\u003e6\u003c/span\u003e. The total sum is \u003cspan class\u003d\"tex-span\"\u003e54 + 6 \u003d 60\u003c/span\u003e, that\u0027s even more than \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e \u003d 59\u003c/span\u003e.\u003c/p\u003e"}}]}