303064: CF597A. Divisibility
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Divisibility
题意翻译
描述: 寻找在区间[a,b]中可以被k整除的数字个数。 输入格式: 唯一的一行有三个由空格分割的数字k,a,b。(1<=k<=10^18,-10^18<=a<=b<=10^18) 输出格式: 直接输出所求的数字个数。题目描述
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