Created
May 6, 2018 16:46
-
-
Save 5minho/1cf70eb6aa07c5837377ff45aac08c0a to your computer and use it in GitHub Desktop.
Codility FrogJmp
This file contains 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 math.ceil((Y-X)/D) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment