Pro.ID21153 TitleHow many 0's? Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21153 AC0 Submit0 Ratio- 时间&空间限制描述A Benedict monk No.16 writes down the decimal representations of all natural numbers between and including m and n, m ≤ n. How many 0's will he write down? 输入Input consists of a sequence of lines. Each line contains two unsigned 32-bit integers m and n, m ≤ n. The last line of input has the value of m negative and this line should not be processed. 输出Description A Benedict monk No.16 writes down the decimal representations of all natural numbers between and including m and n, m ≤ n. How many 0's will he write down? Input Input consists of a sequence of lines. Each line contains two unsigned 32-bit integers m and n, m ≤ n. The last line of input has the value of m negative and this line should not be processed. Output For each line of input print one line of output with one integer number giving the number of 0's written down by the monk. Sample Input 10 11 Sample Output 1 Source 样例输入10 11 样例输出1 作者 |