Please read the new rule regarding the restriction on the use of AI tools. ×
Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Похожие куски кода с разным временем выполнения
Difference between ru2 and en1, changed 877 character(s)
Очень долго, сдавая задачу Е [отсюда](http://mirror.codeforces.com/gym/100093), я ловил TL.↵

В итоге у меня есть 2 посылки
So i've been trying to solve Е recently [(the problem)](http://mirror.codeforces.com/gym/100093), and i kept getting TL10 for a long time.↵

As a result i now have 2 submissions
 ([24325463](http://mirror.codeforces.com/gym/100093/submission/24325463) иand [24325486](http://mirror.codeforces.com/gym/100093/submission/24325486)), которые отличаются по времени почти в 2 раза, а по сути лишь порядком индексов в таблице.↵



И есть вот такие 2 посылки (которые представляют собой тот же код
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](http://mirror.codeforces.com/gym/100093/submission/24325728) иand [24325694](http://mirror.codeforces.com/gym/100093/submission/24325694), которые отличаются по времени на 450мс, а тексты отличаются лишь количеством пустых строк.↵

Что я делаю не так
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 Первая редакция (опубликовано)