Start 2021-02-02 00:00:00

21寒假A班循环J组

End 2021-02-28 00:00:00
Contest is over.
Now 2025-12-15 23:12:13

C. 统计整除数字的个数

Description

输入3个整数m, n, a;其中m <= n,统计m到n中(包括m,n)能被a整除的数字个数。

Input

m n a (1<= m,n,a <=100,000且 m <= n)

Output

m到n中(包括m,n)能被a整除的数字个数

Examples

Input

2 6 2

Output

3

Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit