The number of even n-digit numbers 3
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Determine and output the count of even natural numbers with exactly n digits that fall within the interval [a, b].
Input
You will receive three natural numbers: n, a, and b, all 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
Submissions 819
Acceptance rate 19%