1031. Repeat Number

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

Definition: a+b = c, if all the digits of c are same ( c is more than ten)then we call a and b are Repeat Number. My question is How many Repeat Numbers in [x,y].

输入数据

There are several test cases.

Each test cases contains two integers x, y(1<=x<=y<=1,000,000) described above.

Proceed to the end of file.

输出数据

For each test output the number of couple of Repeat Number in one line.

样例输入

复制
1 10
10 12 ·  \n
  ·  \n

样例输出

复制
5
2 \n
 \n

样例说明

If a equals b, we can call a, b are Repeat Numbers too, and a is the Repeat Numbers for itself.

提交

请先 登录

© 2025 FAQs Contact About