Extended Time Limits : Python and other languages.

Revision en3, by KadiyalaSaiManoj, 2016-06-04 08:31:41

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

LanguageFactorTime Limit
C/C++1.02 sec
java2.04 sec
python2/3/pypy34.08 sec
pypy22.04 sec

What do you people think?

I think hackerrank uses extended time limits, do any other site use it?
Hackerrank time limits

Have anyone faced similar problems like this.

Tags time limit, time exceeded

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English KadiyalaSaiManoj 2016-06-04 10:26:59 186
en3 English KadiyalaSaiManoj 2016-06-04 08:31:41 70
en2 English KadiyalaSaiManoj 2016-06-04 08:22:00 357 Tiny change: 'is 2 sec\nLanguage ' -
en1 English KadiyalaSaiManoj 2016-06-04 08:04:05 955 Initial revision (published)