Hint
Condition
Final Steps
Bonus: Can you solve the case where the rabbit can jump at most units down and at most units up?
Spoiler
Join the USACO Forum!
Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!