• Submission not working for Break Rings

 

I would like to give some feedback about ...

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

HTTP_USER_AGENT:

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

break_rings(({8,7},{1,9},{2,7},{3,6},{1,7},{5,7},{3,4},{9,5},{9,6},{3,5},))

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.

9