Here is mycode
Please can anyone give a genuine reason as in why am getting a TLE for this problem solution which is in python, because when solved using in same time complexity( O(n^2)*testcases ) in Java or C++, it gets complete AC.
Here is mycode
Please can anyone give a genuine reason as in why am getting a TLE for this problem solution which is in python, because when solved using in same time complexity( O(n^2)*testcases ) in Java or C++, it gets complete AC.
python is too slow and time multiplier should be custom depending on the problem.(but cc says that it guarantees a solution to the question only in c++ and java)
and cf doesn’t even have a time multiplier(although pypy passes usually)
Alright, Thanks !!