2305: Repeat Number
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:79
解决:18
题目描述
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
样例输出 复制
5
2
提示
If a equals b, we can call a, b are Repeat Numbers too, and a is the Repeat Numbers for itself.