It is a "code jam" and not a "math jam" :)
In reply to Re^3: Google Code Jam 2019 Round 1A Problem 1: Pylons by tybalt89 in thread Google Code Jam 2019 Round 1A Problem 1: Pylons by choroba