21153_Howmany0's_

2022-5-16 18:18| 发布者: Hocassian| 查看: 42| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-3-89504936168300-Problem List-采集的数据-后羿采集器.html

Pro.ID

21153

Title

How many 0's?

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21153

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 1000/500 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    A Benedict monk No.16 writes down the decimal representations of all natural numbers between and including m and n, mn. 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, mn. 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, mn. 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, mn. 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
    100 200
    0 500
    1234567890 2345678901
    0 4294967295
    -1 -1

    Sample Output

    1
    22
    92
    987654304
    3825876150

    Source

    样例输入

    10 11
    100 200
    0 500
    1234567890 2345678901
    0 4294967295
    -1 -1

    样例输出

    1
    22
    92
    987654304
    3825876150

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部