问题1445--Repeat Number

1445: Repeat Number

时间限制: 1 Sec  内存限制: 32 MB
提交: 147  解决: 35
[状态] [讨论版] [提交] [命题人:]
题目描述

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.

样例输入 Copy
1 10
10 12
样例输出 Copy
5
2
提示

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

来源/分类