Problem:
 Score : 200 points    Problem Statement You are given nonnegative integers a and b ( a ≤ b ), and a positive integer x .
Among the integers between a and b , inclusive, how many are divisible by x ?      Constraints  0 ≤ a ≤ b ≤ 10^{18}  1 ≤ x ≤ 10^{18}         Input The input is given from Standard Input in the following format:  a  b  x       Output Print the number of the integers between a and b , inclusive, that are divisible by x .        Sample Input 1 4 8 2      Sample Output 1 3  There are three integers between 4 and 8 , inclusive, that are divisible by 2 : 4 , 6 and 8 .       Sample Input 2 0 5 1      Sample Output 2 6  There are six integers between 0 and 5 , inclusive, that are divisible by 1 : 0 , 1 , 2 , 3 , 4 and 5 .       Sample Input 3 9 9 2      Sample Output 3 0  There are no integer between 9 and 9 , inclusive, that is divisible by 2 .       Sample Input 4 1 1000000000000000000 3      Sample Output 4 333333333333333333  Watch out for integer overflows.

Solution (Python):
s=input().split()
a=int(s[0])
b=int(s[1])
x=int(s[2])
c=-int(a//x)+int(b//x)
if a%x==0:
 c+=1
print(c)

Solution (Python):
ini=map(int, raw_input().split())

if ini[0]%ini[2]==0:
	print ini[1]/ini[2]-ini[0]/ini[2]+1
else:
	print ini[1]/ini[2]-ini[0]/ini[2]

Solution (Python):
a, b, x = list(map(int, input().split()))
ans = (b // x) - (a // x)
if a % x == 0: ans += 1
print(ans)

Solution (Python):
import math;
a,b,x = map(long, raw_input().split());
if(a%x == 0):
    a-=1;
A = long(math.ceil(a/x));
B = long(b//x);
print(B-A);

Solution (Python):
import math
st = input().split()
a = int(st[0])
b = int(st[1])
x = int(st[2])

ret = b//x - a//x
if a%x == 0:
    ret += 1

print(ret)

Solution (Python):
a,b,x=map(int,input().split())
aa=(a-1)//x+1 if a!=0 else 0
bb=b//x+1
print(bb-aa)

Solution (Python):


l = list(map(int, input().split()))
num = 0;

num = (l[1]//l[2]) - ((l[0]-1)//l[2])
print(num)

Solution (Python):
a,b,x = [int(i) for i in input().split()]
print(b//x - a//x + (1 if a%x==0 else 0))

Solution (Python):
a,b,x = map(int, raw_input().split())

print b/x - (a-1)/x

Solution (Python):

import math
import string
import time
import fractions


a, b, x = map(int,raw_input().split())

print b / x - (a - 1) / x

Solution (Python):

def getLnInput():
    return input().split()


def main():
    a, b, x = list(map(int, getLnInput()))
    print(b // x - (a - 1) // x)
    return


main()

Solution (Python):

a, b, x = list(map(int, input().split()))
ans = 0

if a == 0 or a % x == 0:
    ans += 1

r = b // x
l = a // x

ans += r - l

print(ans)

Solution (Python):
a, b, x  = map(int, input().split())

if a != 0:
	print(b//x - (a-1)//x)
else:
	print(b//x + 1)

Solution (Python):
a, b, x = map(int, raw_input().split())

ans = (b/x) - ((a-1)/x)

print ans

Solution (Python):
a,b,x=map(int,raw_input().split())
print b/x-(a-1)/x

Solution (Python):



import sys

def rl(proc=None):
    if proc is not None:
        return proc(sys.stdin.readline())
    else:
        return sys.stdin.readline().rstrip()

def srl(proc=None):
    if proc is not None:
        return map(proc, rl().split())
    else:
        return rl().split()

def main():
    a, b, x = srl(int)
    s = a / x * x
    if s < a:
        s += x
    if s > b:
        print 0
        return
    print (b - s) / x + 1


if __name__ == '__main__':
    main()

Solution (Python):


a, b, c = [int(w) for w in raw_input().split()]
print b // c - (a - 1) // c