• Submission not working for Break Rings


I would like to give some feedback about ...

From: http://www.checkio.org/mission/break-rings/solve/


Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

When I submit my code I get this error: Your result: 4

Right result: 3


But when I try running the function in Python my result is 3, even though the checker says I am getting 4. I also added this particular set of inputs as an assert which passes as 3.

I know my code is super messy and convoluted because I did this using brute force, but I can't reconcile why this is working in Pycharm and not via the browser or when I submit the code in Pycharm.

Please advise.