Frog jump-Codility lesson3(Count minimal number of jumps from position X to Y.)

def solution(X, Y, D):

   # write your code in Python 3.6

   if X==Y:

     n=0

   else:

     n=(Y-X)//D+1

   return n

   pass

posted @ 2020-08-03 10:58  挨特·李  阅读(163)  评论(0编辑  收藏  举报