1201. odd-even number

时间限制 1000 ms   内存限制 66 MB

For a number,if the length of continuous odd digits is even and the length of continuous even digits is odd,we call it odd-even number.Now we want to know the amount of odd-even number between L,R(1<=L<=R<= 9*10^18).

输入数据

First line a t,then t cases.every line contains two integers L and R.

输出数据

Print the output for each case on one line in the format as shown below.

样例输入

复制
2
1 100
110 220
 \n
 ·   \n
   ·   \n

样例输出

复制
Case #1: 29
Case #2: 36
    ·   ·  \n
    ·   ·  \n

提交

请先 登录

© 2024 FAQs Contact About