{"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":"MD","content":"反恐精英在尘土中发现了一枚定时炸弹。但这次恐怖分子改进了定时炸弹。定时炸弹的编号顺序从1到N计数。如果当前的编号顺序包括**(子串!!)**“49”,爆炸威力将增加一个点。\n问最后爆炸的时候威力为多少。"}},{"title":"Input","value":{"format":"MD","content":"输入T代表T组(T \u003c\u003d 1e4)\u003cbr\u003e\n每组输入一个n(1 \u003c\u003d n\u003c\u003d2^63 - 1)"}},{"title":"Output","value":{"format":"MD","content":"For each test case, output an integer indicating the final points of the power."}},{"title":"Sample Input","value":{"format":"MD","content":"\u003cpre\u003e3\n1\n50\n500\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"MD","content":"\u003cpre\u003e0\n1\n15\n\n\n \n \u003ci style\u003d\"font-size:1px\"\u003e \u003c/i\u003e\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"MD","content":"\u003cpre\u003eFrom 1 to 500, the numbers that include the sub-sequence \"49\" are \"49\",\"149\",\"249\",\"349\",\"449\",\"490\",\"491\",\"492\",\"493\",\"494\",\"495\",\"496\",\"497\",\"498\",\"499\",\nso the answer is 15.\n \n \u003c/pre\u003e"}}]}