27 Oct Aurora Saturday 14:30 Python Practice 22.10.22.
Question: (Please use DP to solve)
Many people think number 4 is a unlucky number. Let’s find out lucky numbers between a range.
Input
Each line contains a pair of number N, M (0<N≤M<10000000000) as following :
N M
Input is ended with the line
0 0
Output
Output should contain the count of the numbers do not contain 4 in the range from N to M.
Sample Input
1 100
Sample Output
80
Sorry, the comment form is closed at this time.