Testing Round 12
翻译中…
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*$.
翻译中…
Input
翻译中…
The only line contains three space-separated integers $*k*$, $*a*$ and $*b*$ ($1 ≤ *k* ≤ 10^{18}; - 10^{18} ≤ *a* ≤ *b* ≤ 10^{18}$).
翻译中…
Output
翻译中…
Print the required number.
翻译中…
样例
Input #1
1 1 10
Output #1
10
InputCopy
OutputCopy
Input #2
2 -4 4
Output #2
5
InputCopy
OutputCopy
题目信息
标签
数学
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。