8503: The Almost Lucky Numbers
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:3
解决:3
题目描述
John and Brus believe that the digits 4 and 7 are lucky and all others are not. According to them, an almost lucky number is a number that contains at most one non-lucky digit in its decimal representation. Return the total number of almost lucky numbers between a and b, inclusive.
输入
Each line contains two integers a,b<=1,000,000
输出
For each line of input,output the total number of almost lucky numbers between a and b, inclusive.
样例输入 复制
4 7
8 19
样例输出 复制
4
4