Weird MLE

Правка en3, от EbraM96, 2018-01-05 16:09:37

Problem: 279C - Ladder

MLE:33920174

AC:33920297

The only difference is at line 66:

MLE: while(~i&&a[i]<=a[i-1])

AC: while(i&&a[i]<=a[i-1])

When i = 0 the array access a[i-1] will be invalid I get that but why does this result a MLE verdict?!

Note: while(~i) is the same as while(i!=-1)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский EbraM96 2018-01-05 16:09:37 2
en2 Английский EbraM96 2018-01-05 14:13:25 2 Tiny change: '[problem:297C]\n\nMLE:' -> '[problem:279C]\n\nMLE:'
en1 Английский EbraM96 2018-01-05 14:12:42 350 Initial revision (published)