EasyRating 900
Divisible in a Range
Count the integers x with a ≤ x ≤ b that are divisible by k.
Input
One line: a b k (0 ≤ a ≤ b ≤ 10¹⁸, 1 ≤ k ≤ 10¹⁸).
Output
A count.
Sample 1
Input
1 10 3
Output
3
Sample 2
Input
0 0 5
Output
1
Output appears hereOne line: a b k (0 ≤ a ≤ b ≤ 10¹⁸, 1 ≤ k ≤ 10¹⁸).
A count.
1 10 3
3
0 0 5
1
Output appears here