If someone cannot come up with the above mentioned approaches , you can simply start writing down the numbers which wont take long..
but firat you to understand that the 10^99 is just there to intimidate you....all you have to consider is 1000 because we are subtracting a three digit integer ..if we were subtracting two digit integer then we would have consider 100 ..
why so?? seewhen we subtract a small number from such a huge number the initial digits are going to be the same
for eg: 1000-100 = 900(initial number =9) 10000-100= 9900(initial num,bers 99) 100000-100= 99900(initial numbers =9)
so all we care about are the last three digits becasue those are the ones which are likely to be different from the rest of the initial numbers(in this case)...if we were subtracting a 4 digit number then we would only care for the last 4 digits of the bigger number becasue only those are likely to be different from other digits
for eg : 100000-100 = 99900 ... 100000-126= 99874 ... 100000-758 = 99242 (you can see that when you subtract 3 digit integer froma much larger number only the last three digits are likely to change)..you can do the same for subtraction of 4 digit number from a huge number
so the condition is : hundred digits( y) is greater than unit digit(x) ..and units and tens digit are same
therefore = 100y +10x+ x = 100y +11x
now we have to subtract the 3 digit number from 1000(assumed as explained above becasue every digit beyond the thousands digit to the left is going to be 9)
so write dwon all the digits first ; 0,1,2,3,4,5,6,7,8,9
remember the condition that : hundred digit is greater than units : y>x
we start with 0 - we want a three digit integer
start with hundered digit as 1 = 100 (only one number becasue then unit digit would be greater or equal to 1)
with 2: 200, 211
with 3
:300,311,322
similary till hundred digit as 9 : 900,911,922,933,....988
one more way to refine your search is as soon as you get a number subtract it from 1000 : for eg "100" ..ill get a 9 ad 0 ,0 at the end ...so yeah divisible by 9
consider 311 : ill get a 6+8+9 = 23 : not divisible ...as you proceed youll get a rouh idea even befr=ore you subtract...
i did in this way and solved it in 2.39 seconds...