100 atcoder#ABC048B. [ABC048B] Between a and b ...
[ABC048B] Between a and b ...
Score : points
Problem Statement
You are given nonnegative integers and (), and a positive integer . Among the integers between and , inclusive, how many are divisible by ?
Constraints
Input
The input is given from Standard Input in the following format:
Output
Print the number of the integers between and , inclusive, that are divisible by .
4 8 2
3
There are three integers between and , inclusive, that are divisible by : , and .
0 5 1
6
There are six integers between and , inclusive, that are divisible by : , , , , and .
9 9 2
0
There are no integer between and , inclusive, that is divisible by .
1 1000000000000000000 3
333333333333333333
Watch out for integer overflows.