Dr. Orooji’s children have played Tetris but are not willing to help Dr. O with a related problem.
Dr. O’s children don’t realize that Dr. O is lucky to have access to 100+ great problem solvers and
great programmers today!
Given a range (in the form of two integers) and a digit (0-9), you are to count how many
occurrences of the digit there are in the given range.
输入描述:
There is only one input line; it provides the range and the digit. Each integer for the range will be
between 1000 and 9999 (inclusive) and the digit will be between 0 and 9 (inclusive). Assume the
first integer for the range is not greater than the second integer for the range.
输出描述:
Print the number of occurrences of the digit in the given range.