TORONTO KIDS COMPUTER CLUB | Aurora Saturday 14:30 Python Practice 22.10.22.
21311
post-template-default,single,single-post,postid-21311,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Aurora Saturday 14:30 Python Practice 22.10.22.

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

 

No Comments

Sorry, the comment form is closed at this time.