The number of n-digit numbers is 5
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Determine the number of natural n-digit numbers that fall within the interval [a, b].
Input
You will receive three natural numbers n, a, and b on a single line, separated by spaces (1 ≤ n ≤ 12
, 1 ≤ a, b ≤ 10^12
).
Output
Provide the solution to the problem.
Examples
Input #1
Answer #1
Input #9
Answer #9
Input #10
Answer #10
Submissions 1K
Acceptance rate 21%