
118  ZOJ Monthly, July 2012  A
A positive number y is called magic number if for every positive integer x it satisfies that put y to the right of x, which will form a new integer z, z mod y = 0. InputThe input has multiple cases, each case contains two positve integers m, n(1 <= m <= n <= 2^311), proceed to the end of file. OutputFor each case, output the total number of magic numbers between m and n(m, n inclusively). Sample Input1 1 1 10 Sample Output1 4 Author: QU, Zhe 