PROBLEM LINK-: CLICK HERE
PROBLEM SETTERS-: @dcpandey
PROBLEM-: Neha is given a number N. She always looks for special thing , this time she is looking for Special Number and Partial Special Number. A Special Number is a number whose product of its digits is equal to number itself i.e. N , and in this number there is no digit 1. Partial Special is a number having all the condition same as Special except that it must have digit 1 in it .
EXPLANATION-: Firstly the counting range of the special and partial special numbers will be up to 10^6 only as there can be infinite special number (this hint is given in example itself) . Now ,we will extract all the digits and find the the product of digits if the product is equal number then and contains 1 then increase the counter of the partial special else increase the counter of special number if product is equal to the number and doesn’t contain 1 .
SOLUTION-: CLICK HERE