https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 Happy to say that the code I wrote gave the correct answer the first time, so yay. I'll post my solution in a reply to make it easier to avoid spoilers in case anyone wants to try it themselves. gc