{"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":"Description","value":{"format":"HTML","content":"\n\u003cp\u003e对于一个十进制数 \u003cb\u003en\u003c/b\u003e,如果每一位数都相等,则称为平凡数,否则为非平凡数。比如 \u003cb\u003e1, 2, 99\u003c/b\u003e是平凡数,而 \u003cb\u003e123, 2021\u003c/b\u003e 不是非平凡数。\u003c/p\u003e\n\u003cp\u003e给一个数 \u003cb\u003en\u003c/b\u003e,找出所有 \u003cb\u003e1\u003c/b\u003e 到 \u003cb\u003en\u003c/b\u003e 中平凡数的个数。\u003c/p\u003e\n"}},{"title":"Input","value":{"format":"HTML","content":"\n\u003cp\u003e第一行为测试组数 t (t \u003c\u003d 1e4) \u003c/p\u003e\n\u003cp\u003e每个测试点输入一个 n (1 \u003c\u003d n \u003c\u003d 1e9)\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e对于每个样例,输出所有 \u003cb\u003e1\u003c/b\u003e 到 \u003cb\u003en\u003c/b\u003e 中平凡数的个数\u003c/p\u003e"}},{"title":"Example","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\u003e6\n1\n2\n3\n4\n5\n100\n\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\u003e1\n2\n3\n4\n5\n18\n\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}