Umnozak
The digit-product of a positive integer is the product of the number's decimal digits. For example, the digitproduct of 2612 is 2 X 6 X 1 X 2 = 24. The self-product of a number is the product of the number and its digitproduct. For example, the selfproduct of 2612 is 2612 X 24 = 62688. Write a program that, given two positive integers A and B, calculates the number of positive integers whose selfproduct is between A and B, inclusive.
InputThe first and only line contains two integers A and B (1 ≤ A ≤ B < 10^18).
OutputOutput should consist of a single integer, the number of positive integers whose twist is between A and B.
Input:
Output:
20 30Output:
2Input:
Output:
145 192 Output:
4Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.