Σάββατο 25 Μαΐου 2024

Gerry the grasshopper

Gerry the grasshopper lives on an infinite grid with integer coordinates. He starts at $(85, 36)$, and his home is at $(0,0)$. 
Each hop he takes, he can either go $5$ in one direction and $7$ in another, or $4$ in one direction and $2$ in another. 
Can he get home?

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου