{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n div.illustration {\n float: right;\n padding-left: 20px;\n }\n div.illustration .illustration {\n width: 100%;\n border-radius: 4px;\n }\n pre {\n display: block;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n color: #333;\n word-break: break-all;\n word-wrap: break-word;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\n \u003cdiv style\u003d\"width:30.00%\" class\u003d\"illustration\"\u003e\n \u003cimg src\u003d\"CDN_BASE_URL/332e79143660daddd80e768e1612f2b0?v\u003d1715181868\" alt\u003d\"/problems/quickestimate/file/statement/en/img-0001.jpg\" class\u003d\"illustration\"\u003e\n\n \n \u003c/div\u003e\n\n \u003cp\u003eLet’s face it... you are not that handy. When you need to\n make a major home repair, you often need to hire someone to\n help. When they come for the first visit, they make an estimate\n of the cost. Here they must be careful: if they overestimate\n the cost, it might scare you off, but if they underestimate,\n the work might not be worth their time.\u003c/p\u003e\n\n \u003cp\u003eBecause the worker is so careful, it can take a long time\n for them to produce the estimate. But that’s frustrating — when\n you ask for an estimate, you really are asking for the\n magnitude of the cost. Will this be $\u003cspan class\u003d\"tex2jax_process\"\u003e$10$\u003c/span\u003e or $\u003cspan class\u003d\"tex2jax_process\"\u003e$100$\u003c/span\u003e or $\u003cspan class\u003d\"tex2jax_process\"\u003e$1\\, 000$\u003c/span\u003e? That’s all you really want\n to know on a first visit.\u003c/p\u003e\n\n \u003cp\u003ePlease help the worker make the type of estimate you desire.\n Write a program that, given the worker’s estimate, reports just\n the magnitude of the cost — the number of digits needed to\n represent the estimate.\u003c/p\u003e\n\n \u003ch2\u003eInput\u003c/h2\u003e\n\n \u003cp\u003eInput begins with a line containing an integer \u003cspan class\u003d\"tex2jax_process\"\u003e$N$\u003c/span\u003e (\u003cspan class\u003d\"tex2jax_process\"\u003e$1\n \\le N \\le 100$\u003c/span\u003e). The next \u003cspan class\u003d\"tex2jax_process\"\u003e$N$\u003c/span\u003e lines each contain one estimated\n cost, which is an integer between \u003cspan class\u003d\"tex2jax_process\"\u003e$0$\u003c/span\u003e and \u003cspan class\u003d\"tex2jax_process\"\u003e$10^{100}$\u003c/span\u003e. (Some of the workers\n overcharge quite a bit.)\u003c/p\u003e\n\n \u003ch2\u003eOutput\u003c/h2\u003e\n\n \u003cp\u003eFor each estimated cost, output the number of digits\n required to represent it.\u003c/p\u003e\n\n \u003ch2\u003eSample 1\u003c/h2\u003e\u003cbody\u003e\u003ctable class\u003d\"vjudge_sample\"\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\u003e5\n314\n1\n5926\n5\n35897\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\n1\n4\n1\n5\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/body\u003e\n\n \u003ch2\u003eSample 2\u003c/h2\u003e\u003cbody\u003e\u003ctable class\u003d\"vjudge_sample\"\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\u003e3\n0\n10\n100\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\n2\n3\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/body\u003e\n "}}]}