Strange MLE

Правка en1, от stanislav.bezkorovainyi, 2018-09-15 17:39:49

I got two solutions for http://mirror.codeforces.com/contest/1036/problem/F

First one: 42893786 Second one: 42893945

First solution gets MLE, though it differs from second one only in line 81. On this line in first approach I try to use precalculated values from the array, instead of calculating them anew.

Can someone explain how a person can get MLE because of trying to get a value from an array?

Теги mle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский stanislav.bezkorovainyi 2018-09-15 17:39:49 441 Initial revision (published)