Блог пользователя chessdroid

Автор chessdroid, история, 7 лет назад, По-русски

Hi! I'm trying to solve 811B Here is my submission link http://codeforces.com/contest/811/submission/30908867 It seems Python cycles are running too slow, because the same code in c++ is passing.

Is there any way to make Python cycles work faster?

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been translated by chessdroid (original revision, translated revision, compare)

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Try submitting in PyPy. I'm not familiar with the details, but it simply works faster on some types of code involving arrays.