{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"Define a \u0027DE\u0027 number as a number whose difference between the sum of digits at the even location and the sum of digits at the odd location is 1. \n\u003cbr\u003e\u003cbr\u003e\nFor example, 234563 is the DE number.\u003cbr\u003e\n\ndigits at odd locations are 3,5,3 (the unit place is location 1 )\u003cbr\u003e\n\ndigits at even location are 2,4,6\u003cbr\u003e\n\nDiff \u003d (2+4+6)-(3+5+3)\u003d12-11 \u003d 1.\u003cbr\u003e\n\u003cbr\u003e\nAnd 123456 is not a DEe number\u003cbr\u003e\n\ndiff \u003d (5+3+1) - (2+4+6) \u003d -4\u003cbr\u003e\n\u003cbr\u003e\nHow many DE numbers are in the range $[a, b]$ {$a$ and $b$ inclusive}\u003c/p\u003e\n\n\n \u003ch3\u003eInput\u003c/h3\u003e\n \u003cp\u003eFirst line will have only one integer \u0027t\u0027 --- the number of test case.\u003c/p\u003e\n \u003cp\u003eEach line from 2nd line contains 2 integer $a$ and $b$\u003c/p\u003e\n\n\n \u003cp\u003e\n\u003cli\u003e$t\\le 100$\n\u003cli\u003e$0\\le a\\le b\\le 10^{10}$\n\u003c/p\u003e\n\n\n\n \u003ch3\u003eOutput\u003c/h3\u003e\n \u003cp\u003eA single number for each test case telling how many DE numbers are in the range .\u003c/p\u003e\n\n \u003ch3\u003eExample\u003c/h3\u003e\n \u003cpre\u003e\u003cstrong\u003eInput:\u003c/strong\u003e\n2\n1 10\n10 100\n\n\u003cstrong\u003eOutput:\u003c/strong\u003e\n1\n9\n\u003c/pre\u003e\n \u003ch4\u003eexplanation:\u003c/h4\u003e\n \u003cp\u003efor 1st test case the only number is 10\u003c/p\u003e\n \u003cp\u003efor 2nd test case numbers are 10, 21, 32, 43, 54, 65, 76, 87, 98\u003c/p\u003e\n\u003c/div\u003e"}}]}