Avoid the Grid Points - A Proposed New Problem

Back to General discussions forum

CSFPython     2024-10-28 08:50:04

You need to look carefully at the geometry of this problem.

Rodion (admin)     2024-10-28 09:04:50
User avatar

It's online, thanks a lot! This warning about geometry incites curiosity :)

gardengnome     2024-10-28 16:01:53
User avatar

Good one, thanks. One case though that I disagree with: -2 7 -1 expects 9 as the answer but I would argue that 10 is correct.

CSFPython     2024-10-28 19:08:48

Mathias,

Thanks for spotting this. I initially hadn't intended the y value to be as small as 1 or -1 and later forgot about this. I have amended the Setter code and have sent it off to Rodion.

Rodion (admin)     2024-10-28 19:22:32
User avatar

Thanks, Friends, the code is updated (I think) - please verify.

gardengnome     2024-10-28 20:58:00
User avatar

Thanks, the tests seem to have now |y| >= 2 which avoids having to handle cases |y| = 1 or even y = 0.

Please login and solve 5 problems to be able to post at forum