How to make Python cycles run faster

Revision en1, by chessdroid, 2017-10-01 16:30:13

Hi! I'm trying to solve 811B Here is my submission link http://mirror.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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English chessdroid 2017-10-01 16:30:13 394 Initial revision for English translation
ru2 Russian chessdroid 2017-10-01 16:22:54 0 (опубликовано)
ru1 Russian chessdroid 2017-10-01 16:21:11 394 Первая редакция (сохранено в черновиках)