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

Revision en1, by 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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru3 Russian HUECTRUM1 2017-02-01 20:16:17 144
en1 English HUECTRUM1 2017-01-31 22:47:22 877 Initial revision for English translation
ru2 Russian HUECTRUM1 2017-01-31 22:39:49 3 Мелкая правка: 'блице.\n\n...\n\nИ есть' -> 'блице.\n\n\n\nИ есть'
ru1 Russian HUECTRUM1 2017-01-31 22:39:04 714 Первая редакция (опубликовано)