In some of the problems i have done in codeforces, some algorithms which pass in c are not passing in python. As most of you know python is slower, but this should not be a problem, sometimes pypy2 is fast enough to pass the time limit, but pypy3 is still weak and is sometimes slower than python3 , so for users using python3 this is becoming a problem.
This can be solved by creating a list of factors for each language which you multiply to the time limit to make the python3 codes pass.
Eg: if time limit is 2 sec
Language | Factor | Time Limit |
C/C++ | 1.0 | 2 sec |
java | 2.0 | 4 sec |
python2/3/pypy3 | 4.0 | 8 sec |
pypy2 | 2.0 | 4 sec |
What do you people think?
I think hackerrank uses extended time limits, do any other site use it?
Have anyone faced similar problems like this.