Not sufficient time for python for LAPD

Yeah! long long gave TLE and int gave AC. Very tight time limit. Passed in 0.36 with int though

Yes. I couldn’t solve the whole problem, but the same logic in C++ and Python 3 got 50 and 30 respectively. It gave TLE with python in second sub-problem unlike C++. So I checked All Submissions and couldn’t find a 100 worth solution.
Your program looks great, and I found some accepted submissions with PYPY3 filter too, but my case still remains that Time Limits should not be so strict.

Yeah but if u see my submissions…My same code was unable to get AC in C++ but i copy pasted in java and i get AC
C++ - CodeChef: Practical coding for everyone
Java - CodeChef: Practical coding for everyone

1 Like

I try c++ in practice but in short contest I cannot as right now as I take too much time to code in c++ and am not even familiar with various data structures in c++ and stl

1 Like

https://www.codechef.com/viewsolution/26421570

My PyPy3 solution which passed in < 1.5 seconds

2 Likes