luoheng
9/3/2019 - 1:31 PM

FrogJmp

# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")

def solution(X, Y, D):
    # write your code in Python 3.6
    N = Y - X
    if N == 0:
        return 0
    i = N // D
    if N % D != 0:
        i += 1
    return i