测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A10142. Divisibility

编程题 普及/提高-

题目描述

Find the number of $k$ -divisible numbers on the segment $[a,b]$ . In other words you need to find the number of such integer values $x$ that $a<=x<=b$ and $x$ is divisible by $k$ .

输入格式

The only line contains three space-separated integers $k$ , $a$ and $b$ ( $1<=k<=10^{18};-10^{18}<=a<=b<=10^{18}$ ).

输出格式

Print the required number.

输入输出样例

输入 #1
1 1 10
输出 #1
10
输入 #2
2 -4 4
输出 #2
5
上一题 去做题 下一题