atcoder#ABC208E. [ABC208E] Digit Products
[ABC208E] Digit Products
Score : points
Problem Statement
For how many positive integers at most is the product of the digits at most ?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of integers satisfying the condition.
13 2
5
Out of the positive integers at most , there are five such that the product of the digits is at most : , , , , and .
100 80
99
Out of the positive integers at most , all but satisfy the condition.
1000000000000000000 1000000000
841103275147365677
Note that the answer may not fit into a -bit integer.