MYQ10 - Mirror Number
A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number while 100 is not.
Given two numbers a and b, find the number of mirror numbers in between them (inclusive of a and b).
First line contains T, number of testcases <= 10^5.
Each testcase is described in a single line containing two numbers a and b.
0 <= a<=b <= 10^44
For each test case print the number of mirror numbers between a and b in a single line.
1 4 Output: 3
I learned that checking for 0 to 10^44 is not all that reliable. Brute force check for small numbers is the best.
can anyone plz post some test cases.. i m getting WA again and again..but i think my code is giving correct outputs.. even for 0 to 10^44 also, i am getting 62762119217..plz reply asap.
Is the solution for
(Tjandra Satria Gunawan)(æ›¾æ¯…æ˜†):
first step: bruteforce it --> TLE
Is it like a led display?
Notice that these are not the same as palindromes. I think it's easy to miss if you don't read carefully.