Created
March 23, 2017 21:31
-
-
Save divmgl/e1915b201d5a51f0027e66667953e1e2 to your computer and use it in GitHub Desktop.
Codility.com FrogJmp 100%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def solution(X, Y, D): | |
return int(math.ceil(float(Y - X) / float(D))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment