Weird behaviour in PYPY3

My solution in PYPY3 for RECTEXSCC from the long challenge gives TLE for one subtask. I don’t see why this would run on the larger subtasks on ~0.05s but TLE on the smaller one. Am i missing something ?
Submitting the same solution in Python3 gives AC.
https://www.codechef.com/viewsolution/41059018 (Python3)
https://www.codechef.com/viewsolution/41058801 (PYPY3)

I believe this is related to i/o. Using fast i/o solves the issue.

1 Like