Похожие куски кода с разным временем выполнения

Правка en1, от HUECTRUM1, 2017-01-31 22:47:22

So i've been trying to solve Е recently (the problem), and i kept getting TL10 for a long time.

As a result i now have 2 submissions (24325463 and 24325486), one of which works almost twice as fast as the other one, while essentially they differ in the indexation order of the lookup table.

What makes it even more interesting is that these 2 submissions (which are basically the same as the previous two): 24325728 and 24325694, run with a difference of 450ms with the texts differing only in the amount of the empty strings.

Can smb explain this please?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru3 Русский HUECTRUM1 2017-02-01 20:16:17 144
en1 Английский HUECTRUM1 2017-01-31 22:47:22 877 Initial revision for English translation
ru2 Русский HUECTRUM1 2017-01-31 22:39:49 3 Мелкая правка: 'блице.\n\n...\n\nИ есть' -> 'блице.\n\n\n\nИ есть'
ru1 Русский HUECTRUM1 2017-01-31 22:39:04 714 Первая редакция (опубликовано)