Extended Time Limits : Python and other languages.

Правка en2, от KadiyalaSaiManoj, 2016-06-04 08:22:00

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?

Have anyone faced similar problems like this.

Теги time limit, time exceeded

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский KadiyalaSaiManoj 2016-06-04 10:26:59 186
en3 Английский KadiyalaSaiManoj 2016-06-04 08:31:41 70
en2 Английский KadiyalaSaiManoj 2016-06-04 08:22:00 357 Tiny change: 'is 2 sec\nLanguage ' -
en1 Английский KadiyalaSaiManoj 2016-06-04 08:04:05 955 Initial revision (published)