{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"A palindromic number or numeral palindrome is a **\u0027symmetrical\u0027** number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers **i j**, you have to find the number of palindromic numbers between **i** and **j** (inclusive)."}},{"title":"Input","value":{"format":"MD","content":"Input starts with an integer **T (\u0026le; 200)**, denoting the number of test cases.\n\nEach case starts with a line containing two integers **i j (0 \u0026le; i, j \u0026le; 10\u003csup\u003e17\u003c/sup\u003e)**."}},{"title":"Output","value":{"format":"MD","content":"For each case, print the case number and the total number of palindromic numbers between **i** and **j** (inclusive)."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\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\u003e4\n1 10\n100 1\n1 1000\n1 10000\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 9\nCase 2: 18\nCase 3: 108\nCase 4: 198\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}