Skip to content

Instantly share code, notes, and snippets.

@5minho
Created May 6, 2018 16:46
Show Gist options
  • Save 5minho/1cf70eb6aa07c5837377ff45aac08c0a to your computer and use it in GitHub Desktop.
Save 5minho/1cf70eb6aa07c5837377ff45aac08c0a to your computer and use it in GitHub Desktop.
Codility FrogJmp
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