pypy’s dict implementation hits TLE while cpython’s could pass #5176
-
I find it curious and hope someone with knowledge of Pypy could provide some insights. The problem is https://codeforces.com/contest/2061/problem/D. Here is the code snippet that leads to a Time Limit Exceeded (TLE) error when executed with Pypy (not a problem if using CPython):
Interestingly, with a slight modification, the code manages to pass the time constraints with Pypy:
cpython version: 3.8.10 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I'm happy to look into this, but I would need an input file that shows the problematic behaviour so I can debug this locally. |
Beta Was this translation helpful? Give feedback.
I think the input is specifically constructed to make your solution time out.
See #3724