• + 0 comments

    It seems like the issue is handling test cases 0 and 1 together. Try separating the logic for each test case like this:

    For test case 0, handle it with an if condition to avoid errors (like division by zero). For test case 1, manage it separately with an elif. That way, you prevent both test cases from interfering with each other.

    Hope that clears it up! Let me know if you need more help.