• the checker too slow / blocked?

Question related to mission Unfair Districts

 

hello so I've written the code for this problem; tested it with the given examples and it worked. But when I tried to check it, it just kept running on the 5th tests for like hours without solving it? I took the same input given by that test and tried it on my local editor, and it solved it in a few secs ( yes, still somewhat slow but not enough not to pass the test, is it? xD ) what should I do? thanks

14