As someone who uses both CPP and python for cc, I prefer writing code in python most of the time.
Something that I can’t wrap my head around is that even though extra time is given for python, I still get TLE for the exact same approach and code that gives an AC solution in CPP.
In March Lunchtime 2021, the problem LUNCHTIM put me in a similar situation.
LUNCHTIM PYTHON - 30 PARTIAL
LUNCHTIM CPP SOL - 100 AC
Here are the links for the two submissions made in Python and CPP respectively. The same approach gives TLE for a subtask in python. I understand that the methods I use for I/O are faster in CPP than Python, thus I submitted another solution in python with faster I/O.
Here is the sol:
https://www.codechef.com/viewsolution/44230311
Even this gave me a TLE instead of an AC.
What could possibly be the solution to this… Bypassing this in Python?